### Question:
FileChecksumSHA256Service { public boolean hasCorrectChecksum(String checkSum, String filepath) { if (checkSum==null) { return false; } if (filepath==null) { return false; } String calculated = createChecksum(filepath); return calculated.equals(checkSum); }  boolean hasCorrectChecksum(String checkSum, String filepath); String createChecksum(String filepath);  }### Answer:
@Test public void test_simple_sha256_check_works() throws Exception{ SharedKernelTestFileSupport testfileSupport = SharedKernelTestFileSupport.getTestfileSupport(); String absolutePath = testfileSupport.createFileFromResourcePath("zipfile_contains_only_test1.txt.zip").getAbsolutePath(); assertTrue(serviceToTest.hasCorrectChecksum("59060b6b4e8d137596dc01ec15d5da1ab4c4ad0d756c780ed88225f082ae87b7", absolutePath)); assertTrue(serviceToTest.hasCorrectChecksum("59060b6b4e8d137596dc01ec15d5da1ab4c4ad0d756c780ed88225f082ae87b7", absolutePath)); assertFalse(serviceToTest.hasCorrectChecksum("19060b6b4e8d137596dc01ec15d5da1ab4c4ad0d756c780ed88225f082ae87b7", absolutePath)); }