SimpleMarshallerImpl implements SimpleMarshaller { @Override public String marshal(Object obj) throws SimpleMarshallerException { return marshal(obj, obj.getClass()); }  @Override String marshal(Object obj); @Override ByteArrayOutputStream marshalAsByteArrayOutputStream(Object obj); @SuppressWarnings("unchecked") @Override String marshalWithoutRootElement(T obj); @Override T unmarshalFromXml(Class<T> clazz, String xml);  }
@Test public void testMarshall() throws JAXBException { final RuleExecutionContainer r = createRuleExecutionContainer(); final String response = marshaller.marshal(r); assertEquals(EXPECTED_MARSHALL_RESPONSE, response); }