### Question:
Terminal { public synchronized boolean setSize(int w, int h) { if (w < 2 || w > 256 || h < 2 || h > 256) { return false; } this.width = w; this.height = h; reset_screen(); return true; } 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 testSetSize() { assertFalse(term.setSize(1, 1)); assertFalse(term.setSize(1, 3)); assertFalse(term.setSize(3, 1)); assertFalse(term.setSize(257, 257)); assertFalse(term.setSize(50, 257)); assertFalse(term.setSize(257, 50)); assertTrue(term.setSize(100, 100)); }