ModelWriter { public void write(final ServerToClientModel model) { write(model, null); } ModelWriter(final WebsocketEncoder encoder); void beginObject(final PWindow window); void write(final ServerToClientModel model); void write(final ServerToClientModel model, final Object value); void endObject(); PWindow getCurrentWindow();  }
@Test public void testWriteNull() { modelWriter.write(null); Mockito.verify(websocketEncoder).encode(null, null); }
@Test public void testWrite() { modelWriter.write(null, null); Mockito.verify(websocketEncoder).encode(null, null); }