when(mavenRepository.getMetadataManager()).thenReturn(metadataManager);
when(mavenRepository.retrieveItem(any(Boolean.class), any(ResourceStoreRequest.class)))
.thenThrow(ItemNotFoundException.class);
final ArtifactStoreHelper artifactStoreHelper = new ArtifactStoreHelper(mavenRepository);
final Gav gav = gavCalculator.pathToGav("/org/test/artifact/1.0/artifact-1.0-classifier.jar");
assertThat(gav.getClassifier(), equalTo("classifier"));
final ArtifactStoreRequest request = new ArtifactStoreRequest(mavenRepository, gav, false);
artifactStoreHelper.storeArtifactWithGeneratedPom(
request, "pom", new ByteArrayInputStream("Content".getBytes(Charsets.UTF_8)), null);