UserServiceImpl extends BaseServiceImpl<HawkularUser> implements UserService { @Override public HawkularUser getById(String id) { return getById(UUID.fromString(id)); }  @Produces @CurrentUser @Override HawkularUser getCurrent(); @Override HawkularUser getById(String id); @Override HawkularUser getById(UUID id); @Override HawkularUser getOrCreateById(String id); @Override HawkularUser getOrCreateByIdAndName(String id, String name);  }
@Test public void nonExistingUserReturnsNull() { HawkularUser user = userService.getById(UUID.randomUUID().toString()); assertNull("User should not exist", user); }