@Test
public void should_serialize() throws Exception {

    String s = objectMapper.writer().writeValueAsString(MessageParams.of("key1", "value1"));
    assertThat(s).isEqualTo("{\"key1\":\"value1\"}");
}