### Question:
StandardEvent implements Event { @Override public EventField getField(final EventFieldName fieldName) { if (fieldName == null) { return null; } return eventFields.stream().filter(e -> fieldName.equals(e.getName())).findFirst().orElse(null); } private  StandardEvent(final Builder builder); @Override EventType getEventType(); @Override List<EventField> getFields(); @Override EventField getField(final EventFieldName fieldName); @Override void validate(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testGetFieldWhenDoesNotExist() { final Event event = new StandardEvent.Builder() .eventType(EventType.CREATE_BUCKET) .build(); final EventField field = event.getField(EventFieldName.BUCKET_ID); Assert.assertNull(field); }