assertEquals("DONE 2 \"\"\n", encodedString);
}
@Test
public void testErrorEncoder() {
final ErrorEncoder encoder = new ErrorEncoder();
final String errorMessage = "The error message";
encoder.set(errorMessage);
final String encodedString = encoder.toString();
assertEquals("ERROR 19 \"The error message\"\n", encodedString);
}