private void assertTotalRowCount(final int expectedRowCount, final Status status) {
        FindMetaCriteria criteria = new FindMetaCriteria();
        criteria.setExpression(ExpressionOperator.builder()
                .addTextTerm(MetaFields.STATUS, Condition.EQUALS, status.getDisplayValue())
                .build());
        final int rowCount = metaDao.count(criteria);

        assertThat(rowCount)
                .isEqualTo(expectedRowCount);
    }
Seeing which execution timer was faster
stroom-meta/stroom-meta-impl-db/src/test/java/stroom/meta/impl/db/TestMetaServiceImpl.java