PartitionStrategy strategy = expression.evaluate();
List<FieldPartitioner> fieldPartitioners = strategy.getFieldPartitioners();
Assert.assertEquals(2, fieldPartitioners.size());
FieldPartitioner fp0 = fieldPartitioners.get(0);
Assert.assertEquals(YearFieldPartitioner.class, fp0.getClass());
Assert.assertEquals("timestamp", fp0.getSourceName());
Assert.assertEquals("year", fp0.getName());
FieldPartitioner fp1 = fieldPartitioners.get(1);
Assert.assertEquals(MinuteFieldPartitioner.class, fp1.getClass());
Assert.assertEquals("timestamp", fp1.getSourceName());
Assert.assertEquals("minute", fp1.getName());
Assert.assertEquals(expr, PartitionExpression.toExpression(strategy));
}