@Test public void testCajo() throws Exception { // this test always fails on jenkins try { WikittyService server = startServer(); WikittyService client = getClient(); WikittyProxy proxy = new WikittyProxy(client); Wikitty w = new WikittyImpl(); proxy.store(w); List<Wikitty> list = server.restore(null, Collections.singletonList(w.getWikittyId())); Assert.assertEquals(1, list.size()); stopServer(server); } catch (Exception ex) { if (ex.getCause() instanceof ConnectException) { if (log.isErrorEnabled()) { log.error("Cajo test failed !!!", ex); } } else { throw ex; } } }