### Question:
CpanPathUtils { private String match(TokenMatcher.State state, String name) { checkNotNull(state); String result = state.getTokens().get(name); checkNotNull(result); return result; } CpanPathUtils(); String path(final TokenMatcher.State state); String path(final String path, final String filename); String filename(final TokenMatcher.State state); String extension(final TokenMatcher.State state); String archivePath(final String path, final String filename, final String extension); String checksumPath(final String path); TokenMatcher.State matcherState(final Context context);  }### Answer:
@Test public void testMatch() { String result = "name"; when(matcherState.getTokens()).thenReturn(tokens); when(tokens.get(any())).thenReturn(result); assertThat(underTest.path(matcherState), is(result)); }