JdbcMetadataParameter extends NullableParameter { @Override public void applyOutputParam(Object dbValue, AdaptrisMessage msg) throws JdbcParameterException { this.checkMetadataKey(); msg.addMetadata(this.getMetadataKey(), normalize(JdbcParameterUtils.objectToString(dbValue))); }  @Override Object applyInputParam(AdaptrisMessage msg); @Override void applyOutputParam(Object dbValue, AdaptrisMessage msg); String getMetadataKey(); void setMetadataKey(String metadataKey);  }
@Test public void testNoMetadataKeyForOutputParam() throws Exception { message.removeMetadata(metadata); JdbcMetadataParameter param = new JdbcMetadataParameter(); try { param.applyOutputParam(null, message); } catch(JdbcParameterException ex) { } }