// Path: src/test/java/org/apache/commons/net/nntp/NewsgroupInfoFactory.java
// public class NewsgroupInfoFactory {
// 
// 	/**
// 	 * Newsgroup info.
// 	 *
// 	 * @param count
// 	 *            the count
// 	 * @param first
// 	 *            the first
// 	 * @param last
// 	 *            the last
// 	 * @param newsgroup
// 	 *            the newsgroup
// 	 * @return the newsgroup info
// 	 */
// 	public static NewsgroupInfo newsgroupInfo(final long count, final long first, final long last,
// 	        final String newsgroup) {
// 		return NewsgroupInfoFactory.newsgroupInfo(count, first, last, newsgroup, 0);
// 	}
// 
// 	/**
// 	 * Newsgroup info.
// 	 *
// 	 * @param count
// 	 *            the count
// 	 * @param first
// 	 *            the first
// 	 * @param last
// 	 *            the last
// 	 * @param newsgroup
// 	 *            the newsgroup
// 	 * @param permission
// 	 *            the permission
// 	 * @return the newsgroup info
// 	 */
// 	public static NewsgroupInfo newsgroupInfo(final long count, final long first, final long last,
// 	        final String newsgroup, final int permission) {
// 		final NewsgroupInfo newsgroupInfo = new NewsgroupInfo();
// 		newsgroupInfo._setArticleCount(count);
// 		newsgroupInfo._setFirstArticle(first);
// 		newsgroupInfo._setLastArticle(last);
// 		newsgroupInfo._setNewsgroup(newsgroup);
// 		newsgroupInfo._setPostingPermission(permission);
// 		return newsgroupInfo;
// 	}
// }


import java.util.HashSet;
import java.util.Set;
import org.apache.commons.net.nntp.NewsgroupInfo;
import org.apache.commons.net.nntp.NewsgroupInfoFactory;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
/**
 * NewsGroupTest
 *
 * @author ${author}
 * @since 17-Jun-2016
 */
package uk.co.sleonard.unison.datahandling.DAO;



/**
 * The Class MessageTest.
 *
 * @author Elton <elton_12_nunes@hotmail.com>
 * @since v1.2.0
 *
 */
public class NewsGroupTest {
	/** The expected article count. */
	private static final int expectedArticleCount = 10;

	/** The expected first article. */
	private static final int expectedFirstMessage = 2;

	/** The expected last article. */
	private static final int expectedLastMessage = 79;

	/** The expected posting perm. */
	private static final int expectedPostingPerm = 1;

	/** The nntp ng. */
	private NewsGroup nntpNG;

	/**
	 * Create a mock of NewsgroupInfo.
	 *
	 * @return Mock object of NewsgroupInfo
	 */
	private NewsgroupInfo generateNewsgroupInfoMock() {
// Path: src/test/java/org/apache/commons/net/nntp/NewsgroupInfoFactory.java
// public class NewsgroupInfoFactory {
// 
// 	/**
// 	 * Newsgroup info.
// 	 *
// 	 * @param count
// 	 *            the count
// 	 * @param first
// 	 *            the first
// 	 * @param last
// 	 *            the last
// 	 * @param newsgroup
// 	 *            the newsgroup
// 	 * @return the newsgroup info
// 	 */
// 	public static NewsgroupInfo newsgroupInfo(final long count, final long first, final long last,
// 	        final String newsgroup) {
// 		return NewsgroupInfoFactory.newsgroupInfo(count, first, last, newsgroup, 0);
// 	}
// 
// 	/**
// 	 * Newsgroup info.
// 	 *
// 	 * @param count
// 	 *            the count
// 	 * @param first
// 	 *            the first
// 	 * @param last
// 	 *            the last
// 	 * @param newsgroup
// 	 *            the newsgroup
// 	 * @param permission
// 	 *            the permission
// 	 * @return the newsgroup info
// 	 */
// 	public static NewsgroupInfo newsgroupInfo(final long count, final long first, final long last,
// 	        final String newsgroup, final int permission) {
// 		final NewsgroupInfo newsgroupInfo = new NewsgroupInfo();
// 		newsgroupInfo._setArticleCount(count);
// 		newsgroupInfo._setFirstArticle(first);
// 		newsgroupInfo._setLastArticle(last);
// 		newsgroupInfo._setNewsgroup(newsgroup);
// 		newsgroupInfo._setPostingPermission(permission);
// 		return newsgroupInfo;
// 	}
// }


// Path: src/test/java/uk/co/sleonard/unison/datahandling/DAO/NewsGroupTest.java
import java.util.HashSet;
import java.util.Set;
import org.apache.commons.net.nntp.NewsgroupInfo;
import org.apache.commons.net.nntp.NewsgroupInfoFactory;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

/**
 * NewsGroupTest
 *
 * @author ${author}
 * @since 17-Jun-2016
 */
package uk.co.sleonard.unison.datahandling.DAO;



/**
 * The Class MessageTest.
 *
 * @author Elton <elton_12_nunes@hotmail.com>
 * @since v1.2.0
 *
 */
public class NewsGroupTest {
	/** The expected article count. */
	private static final int expectedArticleCount = 10;

	/** The expected first article. */
	private static final int expectedFirstMessage = 2;

	/** The expected last article. */
	private static final int expectedLastMessage = 79;

	/** The expected posting perm. */
	private static final int expectedPostingPerm = 1;

	/** The nntp ng. */
	private NewsGroup nntpNG;

	/**
	 * Create a mock of NewsgroupInfo.
	 *
	 * @return Mock object of NewsgroupInfo
	 */
	private NewsgroupInfo generateNewsgroupInfoMock() {
		return NewsgroupInfoFactory.newsgroupInfo(NewsGroupTest.expectedArticleCount,