File deploymentFile = new File(deploymentDirectory, sampleWithoutManifestWar.getName());
//create object to test and inject required dependencies
FileContentDelegate objectUnderTest = new FileContentDelegate(deploymentDirectory, "", null);
PackageDetails mockPackageDetails = mock(PackageDetails.class);
PackageDetailsKey mockPackageDetailsKey = mock(PackageDetailsKey.class);
when(mockPackageDetails.getKey()).thenReturn(mockPackageDetailsKey);
when(mockPackageDetailsKey.getName()).thenReturn(sampleWithoutManifestWar.getName());
//run code under test
objectUnderTest.createContent(mockPackageDetails, sampleWithoutManifestWar, false, false);
String actualShaReturned = objectUnderTest.getSHA(sampleWithoutManifestWar);