@Test
public void testCalculateHash() throws NoSuchAlgorithmException, URISyntaxException {

    // manually calculated using the Linux md5sum command line tool
    final String expectedMd5 = "457b4178ee4d1129603a1a6465c8e9c1";
    MessageDigest digest = MessageDigest.getInstance("md5");
    String hash = SW360AttachmentUtils.calculateHash(testFile(), digest);
    assertThat(hash).isEqualTo(expectedMd5);
}