@Test
public void handlesExceptionOnGetOutputStream() {

  try {
    when(socket.getOutputStream()).thenThrow(testException);
  } catch (IOException e) {
    Assert.fail(e.getMessage());
  }
  testSubject.run();
  PowerMockito.verifyStatic(Logger.class);
  Logger.logVerbose("ResponseThread", stackTrace);
}