JsonApiRelationship { public List<JsonApiIdentifiable> getData() { return data; } JsonApiRelationship(JsonApiIdentifiable entity, URI location);   JsonApiRelationship(Collection<? extends JsonApiIdentifiable> entityCollection, URI location); List<JsonApiIdentifiable> getData(); Map<String, URI> getLinks(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testGetData() { JsonApiRelationship result = new JsonApiRelationship(relatedList, testLocation); Assert.assertEquals(2, result.getData().size()); Assert.assertEquals(new JsonApiResourceIdentifier(dummy1), result.getData().get(0)); Assert.assertEquals(new JsonApiResourceIdentifier(anotherDummyClass), result.getData().get(1)); }