@Test
public void shouldConvertMediaTypeToName() throws Exception {

    final MediaType mediaType = new MediaType(
            "application",
            "vnd.example.command.travel-through-wormhole+json");
    final String name = nameToMediaTypeConverter.convert(mediaType);
    assertThat(name, is("example.command.travel-through-wormhole"));
}