@Test
void testFind() {

    final Meta meta = metaService.create(createProperties("FEED1"));
    metaService.addAttributes(meta, createAttributes());
    ExpressionOperator expression = new ExpressionOperator.Builder()
            .addTerm(MetaFields.ID, Condition.EQUALS, meta.getId())
            .addTerm(MetaFields.CREATE_TIME, Condition.EQUALS, DateUtil.createNormalDateTimeString(meta.getCreateMs()))
            .build();
    FindMetaCriteria criteria = new FindMetaCriteria(expression);
    assertThat(metaService.find(criteria).size()).isEqualTo(1);
    expression = new ExpressionOperator.Builder()
            .addTerm(MetaFields.ID, Condition.EQUALS, meta.getId())
            .addTerm(MetaFields.CREATE_TIME, Condition.EQUALS, DateUtil.createNormalDateTimeString(0L))
            .build();
    criteria = new FindMetaCriteria(expression);
    assertThat(metaService.find(criteria).size()).isEqualTo(0);
    expression = new ExpressionOperator.Builder()
            .addTerm(MetaFields.ID, Condition.EQUALS, meta.getId())
            .addTerm(MetaFields.FILE_SIZE, Condition.GREATER_THAN, 0)
            .build();
    criteria = new FindMetaCriteria(expression);
    assertThat(metaService.find(criteria).size()).isEqualTo(1);
    expression = new ExpressionOperator.Builder()
            .addTerm(MetaFields.ID, Condition.EQUALS, meta.getId())
            .addTerm(MetaFields.FILE_SIZE.getName(), Condition.BETWEEN, "0,1000000")
            .build();
    criteria = new FindMetaCriteria(expression);
    assertThat(metaService.find(criteria).size()).isEqualTo(1);
}