final String firstName = "Gerhard";
final String lastName = "Petracek";
// mockito doesn't support interfaces...seriously? but you can mock CDI impl
// here we don't have one so implementing for the test the interface
UserRepository mockedUserRepository = (UserRepository) Proxy.newProxyInstance(
Thread.currentThread().getContextClassLoader(),
new Class<?>[]{ UserRepository.class},
new InvocationHandler() {
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {