public void getOrCreateReturnsCorrectInstance() throws Exception {
RichGaugeRepository gs = createService();
gs.setValue("test", 9.99);
gs.setValue("test", 0.01);
RichGauge g = gs.findOne("test");
assertEquals("test", g.getName());
assertEquals(0.01, g.getValue(), 1E-6);
assertEquals(5.0, g.getAverage(), 1E-6);
assertEquals(9.99, g.getMax(), 1E-6);
assertEquals(0.01, g.getMin(), 1E-6);