@Test
public void shouldDeserializeOnlyFirstJSONObject() throws Exception {

    // given
    String json = "{ name: \"parameter\" }\n"
            + "hello;hello";
    BufferedReader reader = StringStreamUtil.reader(json);
    // when
    Parameter parameter = deserializer.deserialize(reader);
    // then
    assertThat(parameter).isNotNull().hasName("parameter");
    assertThat(reader).hasTextLeft("\nhello;hello");
}