@Test
public void testTdrCollectorInstances() {

	initializeTestSetup(1, 1, 2, true);
	tdrCollectorInstanceWatcher.init();
	assertTrue("Key file was not created.", verifyKeyExists());
	assertTrue("Config file was not created.", verifyConfigExists());
	assertTrue("Config file was not correctly built.", verifyValidConfig(2));
	Instance inst1 = createInstance(E3Constant.TDR_COLLECTOR, "1.1.3.2", "2.1.3.2", null);
	Instance inst2 = createInstance(E3Constant.TDR_COLLECTOR, "1.1.3.3", "2.1.3.3", null);
	addInstance(inst1);
	addInstance(inst2);
	assertTrue("Key file did not remain after adding collection instances.", verifyKeyExists());
	assertTrue("Config file did not remain after adding collection instances.", verifyConfigExists());
	assertTrue("Config file did not remain correctly built after adding collection instances.", verifyValidConfig(4));
	deleteInstance(inst2);
	assertTrue("Key file did not remain after removing collection instance.", verifyKeyExists());
	assertTrue("Config file did not remain after removing collection instance.", verifyConfigExists());
	assertTrue("Config file did not remain correctly built after removing collection instance.", verifyValidConfig(3));
}