  @Test
  public void handlesTruncationsAndUpdatesQuorumConfigurationInformationAccordingly() throws Exception {

    havingLogged(
        entries()
            .term(7).configurationAndSeqNum(firstConfig, 1));
    havingTruncatedToSeqNum(1);
    assertThat(oracle.getLastQuorumConfig(), is(equalTo(configurationAndSeqNum(EMPTY, 0))));

    havingLogged(
        entries()
            .term(8).configurationAndSeqNum(secondConfig, 2));
    assertThat(oracle.getLastQuorumConfig(), is(equalTo(configurationAndSeqNum(secondConfig, 2))));
  }