AsyncCallback<Optional<OWLEntityData>> callback = (AsyncCallback<Optional<OWLEntityData>>) invocationOnMock.getArguments()[2];
callback.onSuccess(Optional.of(lookupMap.get((String) invocationOnMock.getArguments()[0])));
return null;
}
}).when(lookupHandler).lookupEntity(any(String.class), any(Set.class), any(AsyncCallback.class));
parser = new DefaultPrimitiveDataParser(lookupHandler);
}