mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/utils/TestReflectionsUtil.java
@Test
    public void testIsFieldSet() throws ReflectionsUtilException
    {
        try
        {
            ReflectionsUtil.isFieldSet(m_Obj, "DoseNotExist");
            fail("isSet method for the field does not exist therefore a NoSuchMethodException should be thrown.");
        }
        catch (final ReflectionsUtilException exception)
        {
            //Expected Exception
        }
        
        Boolean isSet = ReflectionsUtil.isFieldSet(m_Obj, "TestInteger");
        assertThat(isSet, is(true));
    }
/**
     * Verify that the isFieldSet method throws an exception if the there is no isSet method or returns the correct 
     * boolean value after invoking the isSet method.
     */
Verify that the isFieldSet method throws an exception if the there is no isSet method or returns the correct
boolean value after invoking the isSet method.
Verify that the isFieldSet method throws an exception if the there is no isSet method or returns the correct boolean value after invoking the isSet method .
@Test
    public void testIsFieldSet() throws ReflectionsUtilException
    {
        try
        {
            ReflectionsUtil.isFieldSet(m_Obj, "DoseNotExist");
            fail("isSet method for the field does not exist therefore a NoSuchMethodException should be thrown.");
        }
        catch (final ReflectionsUtilException exception)
        {
        }
        Boolean isSet = ReflectionsUtil.isFieldSet(m_Obj, "TestInteger");
        assertThat(isSet, is(true));
    }
@ Test public void testIsFieldSet ( ) throws ReflectionsUtilException { try { ReflectionsUtil . isFieldSet ( m_Obj , "DoseNotExist" ) ; fail ( "isSet method for the field does not exist therefore a NoSuchMethodException should be thrown." ) ; } catch ( final ReflectionsUtilException exception ) { } Boolean isSet = ReflectionsUtil . isFieldSet ( m_Obj , "TestInteger" ) ; assertThat ( isSet , is ( true ) ) ; }
Verify that the isFieldSet method throws an exception if the there is no isSet method or returns the correct
 boolean value after invoking the isSet method.
Verify that the isFieldSet method throws an exception if the there is no isSet method or returns the correct boolean value after invoking the isSet method .
//Expected Exception