localEmployeeData.put(originalMimeTypeKey, "right");
EdmEntitySet employeesSet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet("Employees");
EdmMapping mapping = employeesSet.getEntityType().getMapping();
when(mapping.getMediaResourceMimeTypeKey()).thenReturn(mediaResourceMimeTypeKey);
when(mapping.getMimeType()).thenReturn(originalMimeTypeKey);
ODataResponse response = ser.writeEntry(employeesSet, localEmployeeData, DEFAULT_PROPERTIES);
String xmlString = verifyResponse(response);
assertXpathExists("/a:entry/a:content[@type=\"right\"]", xmlString);
assertXpathNotExists("/a:entry/a:content[@type=\"wrong\"]", xmlString);
}