PrintStream ps = new PrintStream(new File(this.getClass()
.getClassLoader().getResource("version.properties").toURI()));
ps.println("version=${version}");
ps.println("release=${release}");
when(rulesCurator.listAll()).thenThrow(new RuntimeException());
StatusResource sr = new StatusResource(rulesCurator, config);
Status s = sr.status();
ps.close();
assertNotNull(s);
assertEquals("${release}", s.getRelease());
assertEquals("${version}", s.getVersion());
assertFalse(s.getResult());