### Question:
AbstractStringConverter extends AbstractConverter<T> { @Nonnull @Override public final byte[] getRawForm(@Nullable T value) { if (value == null) { return fixAtLeastOneBlankLineAtEOF("null").getBytes(StandardCharsets.UTF_8); } return fixAtLeastOneBlankLineAtEOF(getStringForm(value).trim()).getBytes(StandardCharsets.UTF_8); }  @Nonnull @Override final byte[] getRawForm(@Nullable T value);  }### Answer:
@Test public void shouldCallGetStringFormForValidResult() throws Exception { final String testValue = "test1\n\n"; final byte[] rawForm = CONVERTER.getRawForm(testValue); Assert.assertThat(rawForm, CoreMatchers.equalTo(testValue.getBytes(StandardCharsets.UTF_8))); }
@Test public void shouldReturnTheStringNullAsRawFormOnNullValues() throws Exception { final byte[] rawForm = CONVERTER.getRawForm(null); Assert.assertThat(rawForm, CoreMatchers.equalTo("null\n\n".getBytes(StandardCharsets.UTF_8))); }