mil.dod.th.ose.shell/test/mil/dod/th/ose/shell/TestFactoryObjectCommands.java
@Test
    public void testGetExtension()
    {
        // mock
        doReturn(m_Extension.getObject()).when(m_TestObject).getExtension(m_Extension.getClass());

        // replay
        Object ext = m_SUT.getExtension(m_TestObject, m_Extension.getClass().getName());

        // verify
        assertEquals(m_ExtensionObject, ext);
    }
/**
     * Verify that an extension is returned for a valid extension type.
     */
Verify that an extension is returned for a valid extension type.
Verify that an extension is returned for a valid extension type .
@Test
    public void testGetExtension()
    {
        doReturn(m_Extension.getObject()).when(m_TestObject).getExtension(m_Extension.getClass());
        Object ext = m_SUT.getExtension(m_TestObject, m_Extension.getClass().getName());
        assertEquals(m_ExtensionObject, ext);
    }
@ Test public void testGetExtension ( ) { doReturn ( m_Extension . getObject ( ) ) . when ( m_TestObject ) . getExtension ( m_Extension . getClass ( ) ) ; Object ext = m_SUT . getExtension ( m_TestObject , m_Extension . getClass ( ) . getName ( ) ) ; assertEquals ( m_ExtensionObject , ext ) ; }
Verify that an extension is returned for a valid extension type.
Verify that an extension is returned for a valid extension type .
// mock // replay // verify