@Test
public void testGetJobGroupNamesWithJobsToXmlWithMocks() throws SchedulerException, ParseException {

	scheduleDummyTrigger("DummyJob", "DummyGroup A");
	scheduleDummyTrigger("DummyJob", "DummyGroup B");
	IbisManager ibisManager = mock(IbisManager.class);
	when(ibisManager.getConfigurations()).thenReturn(new LinkedList<Configuration>());
	String result = schedulerAdapter.getJobGroupNamesWithJobsToXml(schedulerHelper.getScheduler(), ibisManager).toXML();
	assertTrue(result.contains("DummyGroup A") && result.contains("DummyGroup B"));
}