    @Test
    public void shouldBeEqual() {

        // given
        Interval interval1 = new Interval(LocalDate.of(2017, 1, 14), LocalTime.of(10, 00), LocalDate.of(2017, 1, 15), LocalTime.of(23, 00));
        Interval interval2 = new Interval(LocalDate.of(2017, 1, 14), LocalTime.of(10, 00), LocalDate.of(2017, 1, 15), LocalTime.of(23, 00));

        // when
        boolean equal = interval1.equals(interval2);

        // then
        assertThat(equal, is(true));
    }