@Test
public void shouldReadStreamAsNewlineSeparatedStrings() throws IOException {

  StringListStreamConverter converter = new StringListStreamConverter();
  String originalString = "abc\ndef";
  InputStream stringStream = new ByteArrayInputStream(originalString.getBytes());
  assertEquals(Arrays.asList("abc", "def"), converter.readStream(stringStream));
}