### Question:
ProposerContextImpl extends AbstractContextImpl implements ProposerContext { @Override public int getMinimumQuorumSize( List<URI> acceptors ) { return (acceptors.size() / 2) + 1; } ProposerContextImpl( org.neo4j.cluster.InstanceId me, CommonContextState commonState,
                         LogProvider logging,
                         Timeouts timeouts, PaxosInstanceStore paxosInstances,
                         HeartbeatContext heartbeatContext ); private  ProposerContextImpl( org.neo4j.cluster.InstanceId me, CommonContextState commonState, LogProvider logging,
                                 Timeouts timeouts, Deque<Message> pendingValues,
                                 Map<InstanceId, Message> bookedInstances, PaxosInstanceStore paxosInstances,
                                 HeartbeatContext heartbeatContext ); @Override InstanceId newInstanceId(); @Override void leave(); @Override void bookInstance( InstanceId instanceId, Message message ); @Override PaxosInstance getPaxosInstance( InstanceId instanceId ); @Override void pendingValue( Message message ); @Override boolean hasPendingValues(); @Override Message popPendingValue(); @Override boolean canBookInstance(); @Override Message getBookedInstance( InstanceId id ); @Override Message<ProposerMessage> unbookInstance( InstanceId id ); @Override int nrOfBookedInstances(); @Override List<URI> getAcceptors(); @Override int getMinimumQuorumSize( List<URI> acceptors ); @Override void patchBookedInstances( ClusterMessage.ConfigurationChangeState value ); ProposerContextImpl snapshot( CommonContextState commonStateSnapshot, LogProvider logging, Timeouts timeouts,
                                         PaxosInstanceStore paxosInstancesSnapshot, HeartbeatContext heartbeatContext ); @Override boolean equals( Object o ); @Override int hashCode(); static final int MAX_CONCURRENT_INSTANCES; }### Answer:
@Test public void shouldCalculateMajorityOfAcceptors() { ProposerContextImpl proposerContext = new ProposerContextImpl( new InstanceId( 1 ), null, null, null, null, null ); assertEquals( 1, proposerContext.getMinimumQuorumSize( acceptorUris( 1 ) ) ); assertEquals( 2, proposerContext.getMinimumQuorumSize( acceptorUris( 2 ) ) ); assertEquals( 2, proposerContext.getMinimumQuorumSize( acceptorUris( 3 ) ) ); assertEquals( 3, proposerContext.getMinimumQuorumSize( acceptorUris( 4 ) ) ); assertEquals( 3, proposerContext.getMinimumQuorumSize( acceptorUris( 5 ) ) ); assertEquals( 4, proposerContext.getMinimumQuorumSize( acceptorUris( 6 ) ) ); assertEquals( 4, proposerContext.getMinimumQuorumSize( acceptorUris( 7 ) ) ); }