@Override
    public boolean handleResult(int returncode, GoPublisher goPublisher) {
        if (returncode == HttpURLConnection.HTTP_NOT_FOUND) {
            deleteQuietly(checksumFile);
            goPublisher.taggedConsumeLineWithPrefix(GoPublisher.ERR, "[WARN] The md5checksum property file was not found on the server. Hence, Go can not verify the integrity of the artifacts.");
            return true;
        }
        if (returncode == HttpURLConnection.HTTP_NOT_MODIFIED) {
            LOG.info("[Agent Fetch Artifact] Not downloading checksum file as it has not changed");
            return true;
        }
        if (returncode == HttpURLConnection.HTTP_OK) {
            LOG.info("[Agent Fetch Artifact] Saved checksum property file [{}]", checksumFile);
            return true;
        }
        return returncode < HttpURLConnection.HTTP_BAD_REQUEST;
    }
@Test
    public void shouldHandleResultIfHttpCodeSaysFileNotModified() {
        StubGoPublisher goPublisher = new StubGoPublisher();
        assertThat(checksumFileHandler.handleResult(HttpServletResponse.SC_NOT_MODIFIED, goPublisher), is(true));
    }