@Test
public void testCanProceed() {

	// A connection is required.
	CanProceedTest c1 = new CanProceedTest( true );
	c1.connected.set( true );
	Assert.assertTrue( c1.canProceed());
	c1.connected.set( false );
	Assert.assertFalse( c1.canProceed());
	// We do not care about the connection.
	CanProceedTest c2 = new CanProceedTest( false );
	c2.connected.set( true );
	Assert.assertTrue( c2.canProceed());
	c2.connected.set( false );
	Assert.assertTrue( c2.canProceed());
}