@Test void testGetLocationWhenDocumentEntityProvidesTheCompression() { final VaultLocation result = underTest.getLocation(DOCUMENT_ENTITY); assertThat(result, is(notNullValue())); verify(fileFactory,atMostOnce()).newFile(any(), any()); verify(fileFactory).newFile("testpath", "123e4567-e89b-12d3-a456-556642440000.epub.lzma"); }
@Override public VaultLocation getLocation(final DocumentEntity documentEntity) { return getLocation(documentEntity, documentEntity.getCompression()); }
FileVaultLocationFactory implements VaultLocationFactory { @Override public VaultLocation getLocation(final DocumentEntity documentEntity) { return getLocation(documentEntity, documentEntity.getCompression()); } }
FileVaultLocationFactory implements VaultLocationFactory { @Override public VaultLocation getLocation(final DocumentEntity documentEntity) { return getLocation(documentEntity, documentEntity.getCompression()); }  }
FileVaultLocationFactory implements VaultLocationFactory { @Override public VaultLocation getLocation(final DocumentEntity documentEntity) { return getLocation(documentEntity, documentEntity.getCompression()); }  @Override VaultLocation getLocation(final DocumentEntity documentEntity); @Override VaultLocation getLocation(final DocumentEntity documentEntity, final DocumentCompression compression); @Override long getAvailableSpace(); }
FileVaultLocationFactory implements VaultLocationFactory { @Override public VaultLocation getLocation(final DocumentEntity documentEntity) { return getLocation(documentEntity, documentEntity.getCompression()); }  @Override VaultLocation getLocation(final DocumentEntity documentEntity); @Override VaultLocation getLocation(final DocumentEntity documentEntity, final DocumentCompression compression); @Override long getAvailableSpace();  }