mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/persistence/TestObservationQueryImpl.java
@Test
    public void testRemoveWithMaxSet()
    {
        m_SUT.withMaxObservations(20);
        
        try
        {
            m_SUT.remove();
            fail("Expecting exception because max was set");
        }
        catch (IllegalStateException e)
        {
            
        }
    }
/**
     * Verify trying to remove with a max set will cause an exception.
     */
Verify trying to remove with a max set will cause an exception.
Verify trying to remove with a max set will cause an exception .
@Test
    public void testRemoveWithMaxSet()
    {
        m_SUT.withMaxObservations(20);
        try
        {
            m_SUT.remove();
            fail("Expecting exception because max was set");
        }
        catch (IllegalStateException e)
        {
        }
    }
@ Test public void testRemoveWithMaxSet ( ) { m_SUT . withMaxObservations ( 20 ) ; try { m_SUT . remove ( ) ; fail ( "Expecting exception because max was set" ) ; } catch ( IllegalStateException e ) { } }
Verify trying to remove with a max set will cause an exception.
Verify trying to remove with a max set will cause an exception .