@Test
public void locateGenerators_shouldNotThrowAnExceptionIfTheClassInstantiationFails() throws Exception {

	IReceiptNumberGenerator[] generators = ReceiptNumberGeneratorFactory.locateGenerators();
	Assert.assertNotNull(generators);
	Assert.assertTrue(generators.length >= 2);
	boolean foundInvalidGenerator = false;
	for (IReceiptNumberGenerator generator : generators) {
		if (generator.getClass().equals(InvalidReceiptNumberGenerator.class)) {
			foundInvalidGenerator = true;
			break;
		}
	}
	Assert.assertFalse("The invalid generator was unexpectedly located.", foundInvalidGenerator);
}