### Question:
EmptyWhereClausePart implements IWhereClausePart { @Override public boolean isParameterUsed() { throw new IllegalStateException( "A NopWhereClauseParte does not support a whereClause"); } EmptyWhereClausePart(); @Override void setParameter(PreparedStatement pstmt, int position); @Override boolean shouldBeUsed(); @Override String getWhereClause(); @Override void appendToClause(StringBuilder whereClause); @Override boolean isParameterUsed();  }### Answer:
@Test(expected=IllegalStateException.class) public void testIsParameterUsed() { classUnderTest.isParameterUsed(); }