@Test public void testDeserialization() throws Exception { final Roles roles = readObjectFromResource("/project/project-roles.json", Roles.class); assertThat(roles, notNullValue()); assertThat(roles.getRoles(), hasSize(2)); assertThat(roles.getRoles(), hasItem("/gdc/projects/PROJECT_ID/roles/ROLE1")); assertThat(roles.getRoles(), hasItem("/gdc/projects/PROJECT_ID/roles/ROLE2")); }
public Set<String> getRoles() { return roles; }
Roles { public Set<String> getRoles() { return roles; } }
Roles { public Set<String> getRoles() { return roles; } @JsonCreator  Roles(@JsonProperty("roles") final Set<String> roles); }
Roles { public Set<String> getRoles() { return roles; } @JsonCreator  Roles(@JsonProperty("roles") final Set<String> roles); Set<String> getRoles(); @Override String toString(); }
Roles { public Set<String> getRoles() { return roles; } @JsonCreator  Roles(@JsonProperty("roles") final Set<String> roles); Set<String> getRoles(); @Override String toString(); static final String URI; }