try { this.processContext.enterState( this.state1 );  assertSame( this.state1, this.processContext.getCurrentState() ); } catch (InvalidMotionException e) { fail( e.getLocalizedMessage() ); }
this.processContext.enterState( this.state1 );  assertSame( this.state1, this.processContext.getCurrentState() );
    public void testEnterState_Valid()    {        this.processContext.startProcess( this.process );        assertSame( this.process,                    this.processContext.getCurrentProcess() );        assertNull( this.processContext.getCurrentState() );        try        {            this.processContext.enterState( this.state1 );            assertSame( this.state1,                        this.processContext.getCurrentState() );        }        catch (InvalidMotionException e)        {            fail( e.getLocalizedMessage() );        }    }