@Test
public void testMarshalMime() throws Exception {

	MimeMarshaller marshallerMock = createMock(MimeMarshaller.class);
	MimeMessage messageMock = createMock(MimeMessage.class);
	Result result = new StringResult();
	Object marshalled = new Object();
	expect(messageMock.getPayloadResult()).andReturn(result);
	marshallerMock.marshal(eq(marshalled), eq(result), isA(MimeContainer.class));
	replay(marshallerMock, messageMock);
	MarshallingUtils.marshal(marshallerMock, marshalled, messageMock);
	verify(marshallerMock, messageMock);
}