@Test void testMapEntityExpandXref() throws URISyntaxException { Entity refRefEntity = createMockEntity(XREF, "RefRefEntityType", "refRefId0"); Entity refEntity = createMockEntity(XREF, "RefEntityType", "refId0"); Entity entity = createMockEntity(XREF); doReturn(refRefEntity).when(refEntity).getEntity("attr"); doReturn(refEntity).when(entity).getEntity("attr"); URI refRefSelf = new URI("http: EntityResponse expectedRefRefEntityResponse = EntityResponse.builder().setLinks(LinksResponse.create(null, refRefSelf, null)).build(); URI refSelf = new URI("http: EntityResponse expectedRefEntityResponse = EntityResponse.builder() .setLinks(LinksResponse.create(null, refSelf, null)) .setData(singletonMap("attr", expectedRefRefEntityResponse)) .build(); URI self = new URI("http: EntityResponse expectedEntityResponse = EntityResponse.builder() .setLinks(LinksResponse.create(null, self, null)) .setData(singletonMap("attr", expectedRefEntityResponse)) .build(); assertEquals( expectedEntityResponse, entityMapper.map(entity, FULL_SELECTION, new Selection(singletonMap("attr", null)))); }
@Override public EntityResponse map(Entity entity, Selection filter, Selection expand) { return mapRecursive(entity, filter, expand, 0); }
EntityMapperImpl implements EntityMapper { @Override public EntityResponse map(Entity entity, Selection filter, Selection expand) { return mapRecursive(entity, filter, expand, 0); } }
EntityMapperImpl implements EntityMapper { @Override public EntityResponse map(Entity entity, Selection filter, Selection expand) { return mapRecursive(entity, filter, expand, 0); }  }
EntityMapperImpl implements EntityMapper { @Override public EntityResponse map(Entity entity, Selection filter, Selection expand) { return mapRecursive(entity, filter, expand, 0); }  @Override EntityResponse map(Entity entity, Selection filter, Selection expand); @Override EntitiesResponse map(
      EntityCollection entityCollection,
      Selection filter,
      Selection expand,
      int size,
      int number,
      int total); }
EntityMapperImpl implements EntityMapper { @Override public EntityResponse map(Entity entity, Selection filter, Selection expand) { return mapRecursive(entity, filter, expand, 0); }  @Override EntityResponse map(Entity entity, Selection filter, Selection expand); @Override EntitiesResponse map(
      EntityCollection entityCollection,
      Selection filter,
      Selection expand,
      int size,
      int number,
      int total);  }