@Test
public void testStop() throws Exception {

	// No client, no error.
	Assert.assertEquals( 0, this.factory.clients.size());
	this.factory.stop();
	// Create a client.
	testFactoryReconfiguration();
	// Verify there is a client.
	Assert.assertEquals( 1, this.factory.clients.size());
	this.factory.stop();
	Assert.assertEquals( 0, this.factory.clients.size());
}