### Question:
ComposerProxyFacetImpl extends ProxyFacetSupport { @Override protected void indicateVerified(final Context context, final Content content, final CacheInfo cacheInfo) throws IOException { AssetKind assetKind = context.getAttributes().require(AssetKind.class); switch (assetKind) { case PACKAGES: content().setCacheInfo(PACKAGES_JSON, content, cacheInfo); break; case LIST: content().setCacheInfo(LIST_JSON, content, cacheInfo); break; case PROVIDER: content().setCacheInfo(buildProviderPath(context), content, cacheInfo); break; case ZIPBALL: content().setCacheInfo(buildZipballPath(context), content, cacheInfo); break; default: throw new IllegalStateException(); } } @Inject  ComposerProxyFacetImpl(final ComposerJsonProcessor composerJsonProcessor);   }### Answer:
@Test public void indicateVerifiedPackages() throws Exception { when(contextAttributes.require(AssetKind.class)).thenReturn(PACKAGES); underTest.indicateVerified(context, content, cacheInfo); verify(composerContentFacet).setCacheInfo(PACKAGES_PATH, content, cacheInfo); }
@Test public void indicateVerifiedList() throws Exception { when(contextAttributes.require(AssetKind.class)).thenReturn(LIST); underTest.indicateVerified(context, content, cacheInfo); verify(composerContentFacet).setCacheInfo(LIST_PATH, content, cacheInfo); }
@Test public void indicateVerifiedProvider() throws Exception { when(contextAttributes.require(TokenMatcher.State.class)).thenReturn(state); when(contextAttributes.require(AssetKind.class)).thenReturn(PROVIDER); when(state.getTokens()).thenReturn(new ImmutableMap.Builder<String, String>() .put("vendor", "vendor") .put("project", "project") .build()); underTest.indicateVerified(context, content, cacheInfo); verify(composerContentFacet).setCacheInfo(PROVIDER_PATH, content, cacheInfo); }
@Test public void indicateVerifiedZipball() throws Exception { when(contextAttributes.require(TokenMatcher.State.class)).thenReturn(state); when(contextAttributes.require(AssetKind.class)).thenReturn(ZIPBALL); when(state.getTokens()).thenReturn(new ImmutableMap.Builder<String, String>() .put("vendor", "vendor") .put("project", "project") .put("version", "version") .put("name", "project-version") .build()); underTest.indicateVerified(context, content, cacheInfo); verify(composerContentFacet).setCacheInfo(ZIPBALL_PATH, content, cacheInfo); }