    @Test
    public void parseSlaveState() throws IOException {

        InputStream in;
        Optional<String> s;

        in = MesosHTTPFetcherTest.class.getResourceAsStream("/slave-state.json");
        s = MesosHTTPFetcher.extractDirectory(in, "3a3e9491-84a5-4c9d-8fed-5ca10c23d922-0000",
                "sum", "d9b0e1d9-49dc-4dd1-8773-d53366fc1517");
        assertTrue(s.isPresent());
        assertThat(s.get(),
                is("/tmp/mesos/slaves/6c751ae7-6856-4127-aea1-42f3a9210846-S0/frameworks/3a3e9491-84a5-4c9d-8fed-5ca10c23d922-0000/executors/sum/runs/d9b0e1d9-49dc-4dd1-8773-d53366fc1517"));

        in = MesosHTTPFetcherTest.class.getResourceAsStream("/slave-state.json");
        s = MesosHTTPFetcher.extractDirectory(in, "3a3e9491-84a5-4c9d-8fed-5ca10c23d922-0000",
                "sum", "927b4c8a-bcfb-40fb-bf24-fcd4a430e2aa");
        assertTrue(s.isPresent());
        assertThat(s.get(),
                is("/tmp/mesos/slaves/6c751ae7-6856-4127-aea1-42f3a9210846-S0/frameworks/3a3e9491-84a5-4c9d-8fed-5ca10c23d922-0000/executors/sum/runs/927b4c8a-bcfb-40fb-bf24-fcd4a430e2aa"));
    }