@Test
void testPersistDocumentWhenVaultLocationIsNotYetKnow() {

    final DocumentEntity documentEntity = DocumentEntity.builder()
            .compression(DocumentCompression.NONE)
            .build();
    final VaultLocation vaultLocation = mock(VaultLocation.class);
    when(vaultLocationFactory.getLocation(documentEntity))
            .thenReturn(vaultLocation);
    underTest.persistDocument(documentEntity, CONTENT);
    verify(vaultLocation).upload(CONTENT);
}