### Question:
PrintWriterWithLogging extends PrintWriter { @Override public void write(int c) { super.write(c); if (LOG.isLoggable(Level.FINE)) this.logOutput.append(c); } PrintWriterWithLogging(Writer out, String name); @Override void close(); @Override void println(); @Override void write(int c); @Override void write(char[] buf, int off, int len); @Override void write(String s, int off, int len);  }### Answer:
@Test @DisplayName("check printlogging calls superclass") void writeInt() throws IOException { testee.write(10); verify(mockedWriter, times(1)).write(10); }
@Test @DisplayName("check printlogging calls superclass for char[]") void writeChar() throws IOException { testee.write(new char[]{'a'},0,1); verify(mockedWriter, times(1)).write(new char[]{'a'},0,1); }