edu.udayton.udri.asset.novatel/test/edu/udayton/udri/asset/novatel/TestNovatelAsset.java
@Test
    public void testCommandException() throws AssetException
    {
        GetPanTiltCommand command = mock(GetPanTiltCommand.class);
        try
        {
            m_SUT.onExecuteCommand(command);
            fail("Expecting Exception");
        }
        catch (CommandExecutionException e)
        {
            //expected exception, only get position is supported
        }
    }
/**
     * Verify exception with a type of command not supported.
     */
Verify exception with a type of command not supported.
Verify exception with a type of command not supported .
@Test
    public void testCommandException() throws AssetException
    {
        GetPanTiltCommand command = mock(GetPanTiltCommand.class);
        try
        {
            m_SUT.onExecuteCommand(command);
            fail("Expecting Exception");
        }
        catch (CommandExecutionException e)
        {
        }
    }
@ Test public void testCommandException ( ) throws AssetException { GetPanTiltCommand command = mock ( GetPanTiltCommand . class ) ; try { m_SUT . onExecuteCommand ( command ) ; fail ( "Expecting Exception" ) ; } catch ( CommandExecutionException e ) { } }
Verify exception with a type of command not supported.
Verify exception with a type of command not supported .
//expected exception, only get position is supported