@Test
public void filterByDateTime() {

    DateTimeUtils.setCurrentMillisFixed(1524960000000L);
    // Mock data set
    final DataFrame dataSet = Mockito.mock(DataFrame.class);
    final DataFrame filterDataSet = Mockito.mock(DataFrame.class);
    Mockito.when(dataSet.filter(Mockito.any(Column.class))).thenReturn(filterDataSet);
    // Test filtering by date time
    final MockJdbcDataSetProvider provider = new MockJdbcDataSetProvider();
    final DataFrame newDataSet = provider.filterByDateTime(dataSet, "mockField", null, null);
    Assert.assertEquals(filterDataSet, newDataSet);
    // Test condition
    final ArgumentCaptor<Column> conditionCaptor = ArgumentCaptor.forClass(Column.class);
    Mockito.verify(dataSet).filter(conditionCaptor.capture());
    Assert.assertEquals("(mockField < 1524960000000000)", conditionCaptor.getValue().toString());
}