### Question:
EmptyWhereClausePart implements IWhereClausePart { @Override public void setParameter(PreparedStatement pstmt, int position) throws SQLException { throw new IllegalStateException( "A NopWhereClausePart can't set an parameter"); } 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 testSetParameter() throws Exception { classUnderTest.setParameter(mockPstmt, 1); }