ConfigurableHashStrategy extends AbstractConfigurableSingleStrategy<HashStrategy, HashStrategyProvider> implements HashStrategy { @Override public String getHash(final InputStream inputStream) throws IOException { try (inputStream) { return getConfiguredStrategy().getHash(inputStream); } }  @Override String getHash(final InputStream inputStream); static final String KEY; }
@Test public void shouldHashWithConfiguredStrategy() throws Exception { Assert.assertEquals("8151325dcdbae9e0ff95f9f9658432dbedfdb209", victim.getHash(new ByteArrayInputStream("sample".getBytes()))); }