@Test
public void testGetCurrentHashCode() {

    final GuidedDecisionTableView.Presenter activeDocument1 = mock(GuidedDecisionTableView.Presenter.class);
    final GuidedDecisionTableView.Presenter activeDocument2 = mock(GuidedDecisionTableView.Presenter.class);
    final Integer activeDocument1Hashcode = 123;
    final Integer activeDocument2Hashcode = 456;
    final Integer expectedHashcode = 789;
    doReturn(asSet(activeDocument1, activeDocument2)).when(presenter).getAvailableDecisionTables();
    doReturn(123).when(presenter).currentHashCode(activeDocument1);
    doReturn(456).when(presenter).currentHashCode(activeDocument2);
    doReturn(expectedHashcode).when(presenter).combineHashCodes(asList(activeDocument1Hashcode, activeDocument2Hashcode));
    doReturn(expectedHashcode).when(presenter).combineHashCodes(asList(activeDocument2Hashcode, activeDocument1Hashcode));
    final Integer actualHashcode = presenter.getCurrentHashCodeSupplier().get();
    assertEquals(expectedHashcode, actualHashcode);
}