@Test
public void testDuplicateExits() throws ConfigurationException {

	Adapter adapter = new Adapter();
	PipeLine pipeline = new PipeLine();
	PipeLineExit exit = new PipeLineExit();
	exit.setPath("success");
	exit.setState("SUCCESS");
	pipeline.registerPipeLineExit(exit);
	pipeline.registerPipeLineExit(exit);
	adapter.registerPipeLine(pipeline);
	
	String lastWarning = ConfigurationWarnings.getInstance().getLast();
	assertThat(lastWarning,StringEndsWith.endsWith("PipeLine exit named [success] already exists"));
}