@Test
public void testJsonDecode()
        throws Exception
{

    ServiceDescriptor expected = new ServiceDescriptor(UUID.fromString("12345678-1234-1234-1234-123456789012"),
            "node",
            "type",
            "pool",
            "location",
            ServiceState.RUNNING, ImmutableMap.of("a", "apple", "b", "banana"));
    String json = Resources.toString(getResource("service-descriptor.json"), UTF_8);
    ServiceDescriptor actual = serviceDescriptorCodec.fromJson(json);
    assertDescriptorEquals(expected, actual);
}