### Question:
ApiKey extends DefaultBaseEntity { public void setValue(final String value) { this.value = value; }  UUID getUserId(); void setUser(final SecurityUser user); String getName(); void setName(final String name); String getValue(); void setValue(final String value);  }### Answer:
@Test public void testValidateNullCode() { final ApiKey apiKey = new ApiKey(); apiKey.setValue(null); assertEquals(1, validator.validate(apiKey).size()); }