mil.dod.th.ose.time.service/test/mil/dod/th/ose/time/service/TestTimeChangeServiceThread.java
@Test
    public void testStopRunThrowException() throws IOException
    {
        doThrow(IOException.class).when(m_ServerSocket).close();
        
        m_SUT.stopRun();
        verify(m_ServerSocket).close();       
    }
/**
     * Verify stop called and an exception is properly handled.
     */
Verify stop called and an exception is properly handled.
Verify stop called and an exception is properly handled .
@Test
    public void testStopRunThrowException() throws IOException
    {
        doThrow(IOException.class).when(m_ServerSocket).close();
        m_SUT.stopRun();
        verify(m_ServerSocket).close();       
    }
@ Test public void testStopRunThrowException ( ) throws IOException { doThrow ( IOException . class ) . when ( m_ServerSocket ) . close ( ) ; m_SUT . stopRun ( ) ; verify ( m_ServerSocket ) . close ( ) ; }
Verify stop called and an exception is properly handled.
Verify stop called and an exception is properly handled .