### Question:
GroupEngineClient { public String getPath(String groupId) { try { return groupAPI.getGroup(parseId(groupId)).getPath(); } catch (GroupNotFoundException e) { throw new APIException(new _("Unable to get group path, group not found")); } } 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(expected = APIException.class) public void getPath_throw_APIexception_if_groupId_is_not_a_number() throws Exception { groupEngineClient.getPath("notANumber"); }
@Test public void getPath_return_the_group_path_for_the_specified_group_id() throws Exception { Group group = mock(Group.class); when(group.getPath()).thenReturn("/expected/group/path"); when(groupAPI.getGroup(1L)).thenReturn(group); String groupPath = groupEngineClient.getPath("1"); assertThat(groupPath, is("/expected/group/path")); }