    @Test
    public void testGetLatestContractEventNullEvents() {

        when(mockPage.getContent()).thenReturn(null);
        when(mockEventStore.getContractEventsForSignature(
                eq(EVENT_SIGNATURE), eq(CONTRACT_ADDRESS), any(PageRequest.class))).thenReturn(mockPage);
        assertEquals(false, underTest.getLatestContractEvent(EVENT_SIGNATURE, CONTRACT_ADDRESS).isPresent());
    }