@Test
public void shouldMarshalByDelegatingToJaxbMarshallerWithGivenArgument() throws JAXBException {

    Object arg = new Object();
    OutputStream outputStream = mock(OutputStream.class);
    toTest.marshal(arg, outputStream, UTF8);
    verify(mockMarshaller).setProperty(Marshaller.JAXB_ENCODING, UTF8.displayName());
    verify(mockMarshaller).marshal(arg, outputStream);
}