ArrayList<KeyPredicate> arrayList = new ArrayList<KeyPredicate>();
arrayList.add(keyPredicate);
EasyMock.expect(getEntityView.getKeyPredicates()).andStubReturn(arrayList);
EasyMock.replay(getEntityView);
JPQLContextBuilder contextBuilder1 = JPQLContext.createBuilder(JPQLContextType.SELECT_SINGLE, getEntityView);
try {
JPQLSelectSingleContextImpl = (JPQLSelectSingleContext) contextBuilder1.build();
} catch (ODataJPAModelException e) {
fail("Model Exception thrown");
}
return JPQLSelectSingleContextImpl;