List<EntityExpr> exprList = UtilMisc.toList(
EntityCondition.makeCondition("testingSize", EntityOperator.EQUALS, Long.valueOf(10)),
EntityCondition.makeCondition("comments", EntityOperator.EQUALS, "No-comments"));
EntityConditionList<EntityExpr> condition = EntityCondition.makeCondition(exprList);
EntityFindOptions findOptions = new EntityFindOptions();
findOptions.setDistinct(true);
List<GenericValue> testingSize10 = delegator.findList("Testing", condition, UtilMisc.toSet("testingSize", "comments"), null, findOptions, false);
Debug.logInfo("testingSize10 is " + testingSize10.size(), module);
TestCase.assertEquals("There should only be 1 result found by findDistinct()", testingSize10.size(), 1);