@Test public void testModifyService() throws Exception { ServiceInfo service = geoServer.getFactory().createService(); ((ServiceInfoImpl) service).setId("id"); service.setName("foo"); service.setTitle("bar"); service.setMaintainer("quux"); geoServer.add(service); ServiceInfo s1 = geoServer.getServiceByName("foo", ServiceInfo.class); s1.setMaintainer("quam"); ServiceInfo s2 = geoServer.getServiceByName("foo", ServiceInfo.class); assertEquals("quux", s2.getMaintainer()); geoServer.save(s1); s2 = geoServer.getServiceByName("foo", ServiceInfo.class); assertEquals("quam", s2.getMaintainer()); }