@Test
public void locateGenerators_shouldLocateAllClassesThatImplementIReceiptNumberGenerator() throws Exception {

	IReceiptNumberGenerator[] generators = ReceiptNumberGeneratorFactory.locateGenerators();
	Assert.assertNotNull(generators);
	Assert.assertTrue(generators.length >= 2);
	boolean foundTest1 = false, foundTest2 = false;
	for (IReceiptNumberGenerator generator : generators) {
		if (generator.getClass().equals(TestReceiptNumberGenerator.class)) {
			foundTest1 = true;
		} else if (generator.getClass().equals(AnotherTestReceiptNumberGenerator.class)) {
			foundTest2 = true;
		}
		if (foundTest1 && foundTest2) {
			break;
		}
	}
	Assert.assertTrue("Both of the two test receipt number generators were not located.", foundTest1 && foundTest2);
}