EdmEntitySet entitySet = EasyMock.createMock(EdmEntitySet.class);
EdmEntityType entityType = EasyMock.createMock(EdmEntityType.class);
try {
EasyMock.expect(entityType.getName()).andStubThrow(new EdmException(null));
EasyMock.expect(entitySet.getEntityType()).andStubThrow(new EdmException(null));
} catch (EdmException e1) {
// throw new ODataException();
}
EasyMock.replay(entityType);