### Question:
GuiPlotColorDecoder { public String encodeForClient(Object board) { return board.toString().replaceAll("\n", ""); }  String encodeForClient(Object board); Object encodeForBrowser(Object board); @Override String toString(); static Collector<Character, StringBuilder, String> asString(); static String GUI; }### Answer:
@Test public void shouldEncodeForClient_removeN() { GuiPlotColorDecoder decoder = new GuiPlotColorDecoder(Elements.values()); assertEquals("1234", decoder.encodeForClient("12\n34")); assertEquals("4321", decoder.encodeForClient("43\n21")); assertEquals(fix("{'layers':['1234','4123']}"), decoder.encodeForClient(new JSONObject("{'layers':['1234'\n,'4123']}"))); }