@Test
public void createInstanceOfValidHeaderJsonObjectWorksAsExpected() {

    final Map<String, String> allKnownHeaders = createMapContainingAllKnownHeaders();
    final JsonObjectBuilder jsonObjectBuilder = JsonFactory.newObjectBuilder();
    allKnownHeaders.forEach(jsonObjectBuilder::set);
    final JsonObject headersJsonObject = jsonObjectBuilder.build();
    final MessageHeaders underTest = MessageHeadersBuilder.of(headersJsonObject).build();
    assertThat(underTest).isEqualTo(allKnownHeaders);
}