MetadataValueAdapter implements MetadataValue { public String asString() { Object value = value(); if (value == null) { return ""; } return value.toString(); } protected  MetadataValueAdapter(Plugin owningPlugin); Plugin getOwningPlugin(); int asInt(); float asFloat(); double asDouble(); long asLong(); short asShort(); byte asByte(); boolean asBoolean(); String asString();  }
@Test public void testStringConversionNull() { assertEquals("", simpleValue(null).asString()); }