ProfileVisitsResource extends Resource { public CallSpec<List<ProfileVisit>, HttpError> getOwnProfileVisits() { return getUsersProfileVisits(ME); } ProfileVisitsResource(XingApi api); CallSpec<List<ProfileVisit>, HttpError> getUsersProfileVisits(String userId); CallSpec<List<ProfileVisit>, HttpError> getOwnProfileVisits(); CallSpec<Void, HttpError> createProfileVisits(String userId);  }
@Test public void getOwnProfileVisits() throws Exception { testGetProfileVisits(resource.getOwnProfileVisits()); }