### Question:
NonEmptyFilter implements VirtualPropertyFilter { @Override public final boolean isIncluded(String fieldName, String resolvedValue) { if (resolvedValue == null) { LOG.debug("VirtualProperty with excluded. Value was null. Name: {}", fieldName); return false; } if (resolvedValue.isEmpty()) { LOG.debug("VirtualProperty with excluded. Value was empty. Name: {}", fieldName); return false; } return true; }  @Override final boolean isIncluded(String fieldName, String resolvedValue);  }### Answer:
@Test public void shouldExcludeNullValue() { NonEmptyFilter filter = new NonEmptyFilter(); boolean result = filter.isIncluded(UUID.randomUUID().toString(), null); assertFalse(result); }
@Test public void shouldExcludeNonNullValueWithZeroLength() { NonEmptyFilter filter = new NonEmptyFilter(); boolean result = filter.isIncluded(UUID.randomUUID().toString(), ""); assertFalse(result); }
@Test public void shouldIncludeNonNullValueWithNonZeroLength() { NonEmptyFilter filter = new NonEmptyFilter(); boolean result = filter.isIncluded(UUID.randomUUID().toString(), " "); assertTrue(result); }