### Question:
CpanProxyFacetImpl extends ProxyFacetSupport { @Override protected String getUrl(@Nonnull final Context context) { return context.getRequest().getPath().substring(1); } @Inject  CpanProxyFacetImpl(final CpanParser cpanParser, final CpanPathUtils cpanPathUtils, final CpanDataAccess cpanDataAccess); @TransactionalTouchMetadata void setCacheInfo(final Content content, final CacheInfo cacheInfo);  }### Answer:
@Test public void getUrl() throws Exception { String testUrl = "/repository/cpan-proxy"; String expectedUrl = testUrl.substring(1); when(context.getRequest()).thenReturn(request); when(request.getPath()).thenReturn(testUrl); assertThat(underTest.getUrl(context), is(expectedUrl)); }