@Test(expected = UnsupportedOperationException.class)
public void writeTo() throws Exception {

    final TDPException tdpException = new TDPException(UNEXPECTED_EXCEPTION);
    tdpException.writeTo(new StringWriter());
}