### Question:
FedoraProducer extends DefaultProducer { protected boolean hasParam(String param) { return (param != null && !param.isEmpty() && !"null".equalsIgnoreCase(param)); } FedoraProducer(Endpoint endpoint);   }### Answer:
@Test public void testHasParam() { System.out.println("Testing hasParam(String)"); assertTrue("Parameter should have been found", this.producer.hasParam("param")); assertTrue("Parameter should have been found", this.producer.hasParam(".")); assertTrue("Parameter should have been found", this.producer.hasParam(" ")); assertFalse("Parameter should not have been found", this.producer.hasParam(null)); assertFalse("Parameter should not have been found", this.producer.hasParam("")); assertFalse("Parameter should not have been found", this.producer.hasParam("null")); }