public boolean is(T state, T... otherStates) {
        return EnumSet.of(state, otherStates).contains(currentState);
    }
@Test
    public void testIsInInitialState_whenCreated() {
        assertTrue(machine.is(State.A));
    }