### Question:
HighAvailabilityMemberStateMachine extends LifecycleAdapter implements HighAvailability { public HighAvailabilityMemberState getCurrentState() { return state; } HighAvailabilityMemberStateMachine( HighAvailabilityMemberContext context,
                                               AvailabilityGuard databaseAvailabilityGuard,
                                               ObservedClusterMembers members,
                                               ClusterMemberEvents events,
                                               Election election,
                                               LogProvider logProvider ); @Override void init(); @Override void stop(); @Override void addHighAvailabilityMemberListener( HighAvailabilityMemberListener toAdd ); @Override void removeHighAvailabilityMemberListener( HighAvailabilityMemberListener toRemove ); HighAvailabilityMemberState getCurrentState(); boolean isMaster(); static final AvailabilityRequirement AVAILABILITY_REQUIREMENT; }### Answer:
@Test public void shouldStartFromPending() { HighAvailabilityMemberStateMachine memberStateMachine = buildMockedStateMachine(); assertThat( memberStateMachine.getCurrentState(), equalTo( HighAvailabilityMemberState.PENDING ) ); }