### Question:
NotEmptyValidator implements AtlasValidator { @Override public boolean supports(Class<?> clazz) { return clazz.isAssignableFrom(List.class) || clazz.isAssignableFrom(Map.class) || clazz.isAssignableFrom(Set.class) || clazz.isAssignableFrom(Collection.class); } NotEmptyValidator(ValidationScope scope, String violationMessage); @Override boolean supports(Class<?> clazz); boolean supports(Object object); @Override void validate(Object target, List<Validation> validations, String id); @Override void validate(Object target, List<Validation> validations, String id, ValidationStatus status);  }### Answer:
@Test public void testSupported() { assertTrue(validator.supports(Map.class)); assertTrue(validator.supports(List.class)); assertTrue(validator.supports(Set.class)); assertTrue(validator.supports(Collection.class)); }
@Test public void testUnsupported() { assertFalse(validator.supports(HashMap.class)); }