@GET @Produces("text/plain") public String getInstance() { assertEquals("test/singleton-scope", ui.getPath()); assertEquals("singleton", param); return someObject.toString(); }
public void testSomeObject() { SomeObject so = new SomeObject("nene"); so.toString(); Object outcome = ObjectMapConverter.convert(so); System.out.println(outcome); // assertTrue(!SomeOtherObject.class.equals(outcome.get("soo").getClass())); }