@Test
public void mapFromJsonMessageWithBinaryContentType() {

    final Adaptable adaptable = ProtocolFactory.jsonifiableAdaptableFromJson(JsonObject.of("{\n" +
            "  \"topic\": \"x/1/things/live/messages/subject\",\n" +
            "  \"headers\": {\n" +
            "    \"content-type\": \"application/octet-stream\"\n" +
            "  },\n" +
            "  \"path\": \"/inbox/messages/subject\",\n" +
            "  \"value\": {\n" +
            "    \"jsonKey\": \"jsonValue\"\n" +
            "  }\n" +
            "}"));
    assertThatExceptionOfType(MessageFormatInvalidException.class).isThrownBy(() -> underTest.map(adaptable));
}