assertEquals( "test.process", e.getProcess().getName() );  assertEquals( "state.1", e.getStateName() );
    public void testAddState_Duplicate() throws Exception    {        try        {            State state1 = this.process.addState( "state.1",                                                  "state one" );                        fail( "Should have thrown DuplicateStateException" );        }        catch (DuplicateStateException e)        {            // expected and correct        }    }