@Test
public void testWithTwoSources() throws IOException {

	ArrayList<LinkedHashMap<String, Object>> adapters = createAdapterList(2);
	new Expectations() {{
		jsonSourceAdapter.iterator(); times = 2; returns(JSON_ARRAY_1.iterator(), JSON_ARRAY_2.iterator());
		sourceAdapterFactory.createJsonSourceAdapter(dataSource, anyString); times= 2; result = jsonSourceAdapter;
	}};
	SourceAdapter multiSourceAdapter = new MultiSourceAdapter(sourceAdapterFactory, dataSource, adapters, registry);
	ObjectNode result = multiSourceAdapter.iterator().next();
	Assert.assertFalse(result.get("sourceNr1").isNull());
	Assert.assertFalse(result.get("sourceNr2").isNull());
	Assert.assertEquals(JSON_ARRAY_1, result.get("sourceNr1"));
	Assert.assertEquals(JSON_ARRAY_2, result.get("sourceNr2"));
}