### Question:
WhereClausePartUtil implements IWhereClausePartUtil { @Override public boolean hasUsableWhereClause(List<IWhereClausePart> whereClauseParts){ if(whereClauseParts == null || whereClauseParts.isEmpty()){ return false; } for (IWhereClausePart whereClausePart : whereClauseParts) { if(whereClausePart.shouldBeUsed()){ return true; } } return false; }  @Override String createWhereClause(
			List<IWhereClausePart> whereClauseParts); @Override int setParameters(PreparedStatement pstmt,
			List<IWhereClausePart> whereClauseParts, int firstPosition); @Override boolean hasUsableWhereClause(List<IWhereClausePart> whereClauseParts);  }### Answer:
@Test public void testHasUsableWhereClause(){ List<IWhereClausePart> parts = new ArrayList<IWhereClausePart>(); parts.add(nopWhereClause); assertFalse(whereClausePartUtil.hasUsableWhereClause(parts)); parts.add(isNullWhereClause); assertTrue(whereClausePartUtil.hasUsableWhereClause(parts)); }