### Question:
ComposerHostedFacetImpl extends FacetSupport implements ComposerHostedFacet { @VisibleForTesting protected Query buildQuery(final String vendor, final String project) { return Query.builder().where(P_GROUP).eq(vendor).and(P_NAME).eq(project).build(); } @Inject  ComposerHostedFacetImpl(final ComposerJsonProcessor composerJsonProcessor); @Override @TransactionalStoreBlob void upload(final String vendor, final String project, final String version, final Payload payload); @Override Content getZipball(final String path); @Override @TransactionalTouchMetadata Content getPackagesJson(); @Override @TransactionalTouchMetadata Content getProviderJson(final String vendor, final String project); @Override @TransactionalStoreBlob void rebuildProviderJson(final String vendor, final String project);  }### Answer:
@Test public void testBuildQuery() throws Exception { Query result = underTest.buildQuery(VENDOR, PROJECT); assertThat(result.getWhere(), is("group = :p0 AND name = :p1")); assertThat(result.getParameters(), hasEntry("p0", VENDOR)); assertThat(result.getParameters(), hasEntry("p1", PROJECT)); }