### Question:
EmbedHelper implements Feature { public boolean isEmbeddingOfRelationRequested(String relationName) { return identifyRequestedEmbeddedFields(uriInfo.getQueryParameters()).contains(relationName); } EmbedHelper(Environment environment); boolean isEmbeddingOfRelationRequested(String relationName); @Override boolean configure(FeatureContext context);  }### Answer:
@Test public void shouldEmbedResourceIfRequested() { MultivaluedMap<String, String> queryParameters = new MultivaluedHashMap<>(); queryParameters.put("embed", singletonList("drivers")); EmbedHelper embedHelper = createEmbedHelper(queryParameters); assertThat(embedHelper.isEmbeddingOfRelationRequested("drivers")).isTrue(); assertThat(embedHelper.isEmbeddingOfRelationRequested("owner")).isFalse(); }
@Test public void shouldEmbedMultipleResourcesIfRequested() { MultivaluedMap<String, String> queryParameters = new MultivaluedHashMap<>(); queryParameters.put("embed", asList("drivers", "owner")); EmbedHelper embedHelper = createEmbedHelper(queryParameters); assertThat(embedHelper.isEmbeddingOfRelationRequested("drivers")).isTrue(); assertThat(embedHelper.isEmbeddingOfRelationRequested("owner")).isTrue(); }