pw.println("</features>");
pw.close();
URI uri = tmp.toURI();
FeaturesServiceImpl svc = new FeaturesServiceImpl();
svc.addRepository(uri);
Feature feature = svc.getFeature("f2", "[0.1,0.3)");
assertEquals("f2", feature.getName());
assertEquals("0.2", feature.getVersion());
Feature feature2 = svc.getFeature("f2", "0.0.0");
assertEquals("f2", feature2.getName());
assertEquals("0.2", feature2.getVersion());
Feature feature3 = svc.getFeature("f2", "0.2");
assertEquals("f2", feature3.getName());
assertEquals("0.2", feature3.getVersion());
Feature feature4 = svc.getFeature("f2", "0.3");
assertNull(feature4);
}