### Question:
MonitoringRequestEditor extends PropertyEditorSupport { @Override public String getAsText() { final MonitoringRequest req = getValue(); if (req == null) { return null; } final StringBuilder text = new StringBuilder(); try { text.append(req.getFile().getCanonicalPath()); } catch (final IOException ioe) { throw new IllegalStateException("Failure retrieving path for request '" + req + "'", ioe); } text.append(","); for (final FileOperation fileOperation : MONITORED_OPERATIONS) { if (req.getNotifyOn().contains(fileOperation)) { text.append(fileOperation.name().charAt(0)); } } if (req instanceof DirectoryMonitoringRequest) { final DirectoryMonitoringRequest dmr = (DirectoryMonitoringRequest) req; if (dmr.isWatchSubtree()) { text.append(",").append(SUBTREE_WILDCARD); } } return text.toString(); }  @Override String getAsText(); @Override MonitoringRequest getValue(); @Override void setAsText(final String text);  }### Answer:
@Test public void testGetAsTextWhenNoValueSet() { assertNull(editor.getAsText()); }