    @Test
    public void testForTime() throws Exception {

        AisStoreQueryBuilder queryBuilder = AisStoreQueryBuilder
                .forTime()
                .setInterval(Instant.parse("2015-03-06T05:00:00Z"), Instant.parse("2015-03-06T06:00:00Z"));

        AisStoreQueryResult queryResult = queryBuilder.execute(connection.getSession());

        Iterator<AisPacket> iterator = queryResult.iterator();
        while(iterator.hasNext()) {
            System.out.println(iterator.next().getStringMessage());
        }
    }