@Test
public void testUnmarshalMime() throws Exception {

	MimeUnmarshaller unmarshallerMock = createMock(MimeUnmarshaller.class);
	MimeMessage messageMock = createMock(MimeMessage.class);
	Source source = new StringSource("");
	Object unmarshalled = new Object();
	expect(messageMock.getPayloadSource()).andReturn(source);
	expect(unmarshallerMock.unmarshal(eq(source), isA(MimeContainer.class))).andReturn(unmarshalled);
	replay(unmarshallerMock, messageMock);
	Object result = MarshallingUtils.unmarshal(unmarshallerMock, messageMock);
	Assert.assertEquals("Invalid unmarshalled object", unmarshalled, result);
	verify(unmarshallerMock, messageMock);
}