@Test public void testCreate() throws Exception { String name = "test_user"; User user = userService.create(name); Assert.assertEquals(4, user.getId()); }
public User create(String name) throws ShepherException { return userBiz.create(name); }
UserService { public User create(String name) throws ShepherException { return userBiz.create(name); } }
UserService { public User create(String name) throws ShepherException { return userBiz.create(name); }  }
UserService { public User create(String name) throws ShepherException { return userBiz.create(name); }  User get(long id); User get(String name); User create(String name); User createIfNotExist(String name); List<User> listByTeams(Set<Long> teams, Status status, Role role); Set<String> listNamesByTeams(Set<Long> teamIds, Status status, Role role); }
UserService { public User create(String name) throws ShepherException { return userBiz.create(name); }  User get(long id); User get(String name); User create(String name); User createIfNotExist(String name); List<User> listByTeams(Set<Long> teams, Status status, Role role); Set<String> listNamesByTeams(Set<Long> teamIds, Status status, Role role);  }