PlainOntologyIdStoreConfiguration extends ResourceLoader implements
		OntologyIdStoreConfiguration { @Override public Map<String, OntologyIdInfo> getInfos() { return Collections.unmodifiableMap(infos); } @Inject  PlainOntologyIdStoreConfiguration(@Named("PlainOntologyIdStoreConfigurationResource") String resource,
			@Named("TryResourceLoadAsFiles") boolean tryLoadAsFiles);   PlainOntologyIdStoreConfiguration(InputStream inputStream); @Override Map<String, OntologyIdInfo> getInfos();  }
@Test public void testGetInfos() { String longPattern = "long:00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"; String storeConfig = "testOntologyName \t foo:000000 \t 41 \t 48 \n" + "barOntology \t bar:000000 \t 9000 \t 10000 \n" + "longOntology \t "+longPattern+" \t 9000 \t 10000"; InputStream inputStream = new ByteArrayInputStream(storeConfig.getBytes()); OntologyIdStoreConfiguration config = new PlainOntologyIdStoreConfiguration(inputStream); Map<String, OntologyIdInfo> infos = config.getInfos(); assertEquals(3, infos.size()); assertInfo(infos.get("testOntologyName"), "testOntologyName", "foo:000000", 41, 48); assertInfo(infos.get("barOntology"), "barOntology", "bar:000000", 9000, 10000); assertInfo(infos.get("longOntology"), "longOntology", longPattern, 9000, 10000); }