@Test
public void shouldConvertNameToMediaType() throws Exception {

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