@Override
    public MaterialPollResult responseMessageForLatestRevisionsSince(String responseBody) {
        if (isEmpty(responseBody)) return new MaterialPollResult();
        Map responseBodyMap = getResponseMap(responseBody);
        return new MaterialPollResult(toMaterialDataMap(responseBodyMap), toSCMRevisions(responseBodyMap));
    }
@Test
    public void shouldBuildSCMDataFromLatestRevisionsSinceResponse() throws Exception {
        String responseBodyWithSCMData = "{\"revisions\":[],\"scm-data\":{\"key-one\":\"value-one\"}}";
        MaterialPollResult pollResult = messageHandler.responseMessageForLatestRevisionsSince(responseBodyWithSCMData);

        Map<String, String> scmData = new HashMap<>();
        scmData.put("key-one", "value-one");
        assertThat(pollResult.getMaterialData(), is(scmData));
        assertThat(pollResult.getRevisions().isEmpty(), is(true));
    }