User extends Resource { @Override public String toString() { return getName(); } protected  User(RestClient restclient, JSONObject json); static User get(RestClient restclient, String username); @Override String toString(); boolean isActive(); Map<String, String> getAvatarUrls(); String getDisplayName(); String getEmail(); String getName();  }
@Test public void testStatusToString() throws URISyntaxException { User user = new User(new RestClient(null, new URI("/123/asd")), getTestJSON()); assertEquals(username, user.toString()); }