@Test
	public void testDuplicate(){
		
		//2: Get a list of misused words, for learners
		//b: British English 
		String input = "d\n2\nb";
		System.setIn(new ByteArrayInputStream(
		           input.getBytes()));
		ByteArrayOutputStream outContent = new ByteArrayOutputStream();
		
		System.setOut(new PrintStream(outContent));
		
		//Call Main method
		main.Menu();
		
		System.out.println(outContent.toString().split("\n").length);
		int length = outContent.toString().split("\n").length;
		
		String[] outputArray = new String[length];
		for(int i=0;i<outputArray.length;i++)
		{
			outputArray[i] = outContent.toString().split("\n")[i];
			//System.out.println(outputArray[i]);
		}
		
		//check duplicate
		boolean duplicate = false;
		for(int i=0;i<outputArray.length;i++)
		{
			for(int j=0;j<outputArray.length;j++)
			{
				if(i!=j
					&& !outputArray[i].equals("============================================")
					&& !outputArray[i].equals("==========================================")
					&& !outputArray[i].equals("")
					&& !outputArray[i].equals("\r"))
				{
					if(outputArray[i].equals(outputArray[j]))
					{
						duplicate = true;
					}
				}
			}
		}
		
		//expect "false" - no duplication
		assertEquals(false, duplicate);
		
	}