### Question:
GroupEngineClient { public Group get(Long groupId) { try { return groupAPI.getGroup(groupId); } catch (GroupNotFoundException e) { throw new APIException(new _("Unable to find group %groupId%", new Arg("groupId", groupId))); } } protected  GroupEngineClient(GroupAPI groupAPI); Group get(Long groupId); String getPath(String groupId); void delete(List<Long> groupIds); Group update(long groupId, GroupUpdater groupUpdater); Group create(GroupCreator groupCreator);  }### Answer:
@Test public void get_get_a_group_in_engine_repository() throws Exception { groupEngineClient.get(1L); verify(groupAPI).getGroup(1L); }
@Test(expected = APIException.class) public void get_throw_APIException_if_group_is_not_found_in_engine_repository() throws Exception { when(groupAPI.getGroup(1L)).thenThrow(new GroupNotFoundException(new Exception())); groupEngineClient.get(1L); }