@Test
public void testTransformObjectStringOptionalOfParamsOptionalOfURIResolver()
		throws SimpleMarshallerException, UnsupportedEncodingException {

	// Arrange
	final Object obj = mock(Object.class);
	final ByteArrayOutputStream byteArrayOutputStream = mock(ByteArrayOutputStream.class);
	when(marshaller.marshalAsByteArrayOutputStream(obj)).thenReturn(
			byteArrayOutputStream);
	when(byteArrayOutputStream.toByteArray()).thenReturn(
			doc.getBytes("UTF-8"));
	final String xslFileName = xslUrl;
	// Act
	final String actualOutput = sut.transform(obj, xslFileName, params,
			uriResolver);
	// Assert
	assertTrue(compareXMLs(docTransformed, actualOutput, ignoreList)
			.similar());
}