@Test
public void shouldReadPartFromBeginningCharacterToEndCharacterSkippingUnnecessaryPrefix() throws IOException {

    // given
    String text = "hello world!{ this is important }";
    StringReader reader = new StringReader(text);
    // when
    String textPart = StreamPartReader.readPart(reader, '{', '}');
    // then
    assertThat(textPart).isEqualTo("{ this is important }");
}