"1.files = foo, bar, baz\n";
}
@Test
public void testReader() throws IOException, EmpireException {
EmpireConfiguration aConfig = mReader.read(new StringReader(getConfigFile()));
assertTrue(aConfig != null);
assertTrue(aConfig.getAnnotationProvider() != null);
assertEquals(aConfig.getAnnotationProvider(), PropertiesAnnotationProvider.class);
assertTrue(aConfig.hasUnit("context1"));
assertTrue(aConfig.hasUnit("context2"));
assertFalse(aConfig.hasUnit("context3"));
assertEquals(aConfig.get("foo"), "bar");
assertEquals(aConfig.get("baz"), "biz");
assertTrue(aConfig.get("cheese") == null);
assertEquals(aConfig.getUnitConfig("context1").get("factory"),"com.clarkparsia.empire.sesame.RepositoryDataSourceFactory");
assertEquals(aConfig.getUnitConfig("context1").get("url"), "http://localhost:8080/openrdf-sesame/");
assertEquals(aConfig.getUnitConfig("context1").get("repo"), "mem-rdf-db");
assertEquals(aConfig.getUnitConfig("context2").get("factory"), "jena-test");
assertEquals(aConfig.getUnitConfig("context2").get("files"), "foo, bar, baz");
}