tck/src/main/java/org/hobsoft/microbrowser/tck/ControlGroupTck.java
@Test
	public void getControlsReturnsControl()
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<form name='f'>"
			+ "<input type='text' name='x'/>"
			+ "</form>"
			+ "</body></html>"));
		
		List<Control> actual = newBrowser().get(url(server()))
			.getForm("f")
			.getControlGroup("x")
			.getControls();
		
		assertThat("form control group control", actual, contains(control("x")));
	}
@Test
	public void getControlsReturnsControl()
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<form name='f'>"
			+ "<input type='text' name='x'/>"
			+ "</form>"
			+ "</body></html>"));
		
		List<Control> actual = newBrowser().get(url(server()))
			.getForm("f")
			.getControlGroup("x")
			.getControls();
		
		assertThat("form control group control", actual, contains(control("x")));
	}
@ Test public void getControlsReturnsControl ( ) { server ( ) . enqueue ( new MockResponse ( ) . setBody ( "<html><body>" + "<form name='f'>" + "<input type='text' name='x'/>" + "</form>" + "</body></html>" ) ) ; List < Control > actual = newBrowser ( ) . get ( url ( server ( ) ) ) . getForm ( "f" ) . getControlGroup ( "x" ) . getControls ( ) ; assertThat ( "form control group control" , actual , contains ( control ( "x" ) ) ) ; }
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------