@Test
public void shouldReadPartToEndCharacterLeavingSufixUnchangedInStream() throws IOException {

    // given
    String text = "{ this is important } leave me alone please";
    StringReader reader = new StringReader(text);
    // when
    String textPart = StreamPartReader.readPart(reader, '{', '}');
    // then
    assertThat(textPart).isEqualTo("{ this is important }");
    assertThat(reader).hasTextLeft(" leave me alone please");
}