### Question:
Terminal { public synchronized String read() { String d = vt100_out; vt100_out = ""; return d; } Terminal();  Terminal(int width, int height); synchronized boolean setSize(int w, int h); synchronized String read(); synchronized String pipe(String d); synchronized boolean write(String d); synchronized String dump(); String toString();  }### Answer:
@Test public void testRead() { assertEquals("", term.read()); term.write("\u001b[c"); assertEquals("\u001b[?1;2c", term.read()); }