public void _testNamespaces(JsonJaxbContext ctx) throws Exception { final JsonMarshaller jm = ctx.createJSONMarshaller(); final JsonUnmarshaller ju = ctx.createJSONUnmarshaller(); final StringWriter sw = new StringWriter(); final MyResponse one = JSONTestHelper.createTestInstance(MyResponse.class); jm.marshallToJSON(one, sw); System.out.println(String.format("%s", sw)); MyResponse two; two = ju.unmarshalFromJSON(new StringReader(sw.toString()), MyResponse.class); assertEquals(one, two); }