    @Test
    public void shouldGetMessagesUsingDefaults() throws Exception {

        MessageFilter filter = new MessageFilter();

        when(messageRepository.findByDateBetweenAndDirectionIn(
                notNull(),
                notNull(),
                directionsCaptor.capture(),
                pageableCaptor.capture())
        ).thenReturn(singleResult());

        assertHasSingleResult(sut.getMessagesMatchingFilter(filter));

        assertPagingMatches(0, 25);
        assertDirectionMatches(Message.Direction.INBOUND, Message.Direction.OUTBOUND);
    }