### Question:
NormalizedFieldAndValue extends BaseNormalizedContent implements GroupedNormalizedContentInterface { protected String getDefaultEventFieldName() { if (defaultEventFieldName == null) { if (isGrouped()) { StringBuilder builder = new StringBuilder(); builder.append(getIndexedFieldName()); if (getGroup() != null) { builder.append('.'); builder.append(getGroup().toUpperCase()); } if (getSubGroup() != null) { builder.append('.'); builder.append(getSubGroup().toUpperCase()); } defaultEventFieldName = builder.toString(); } else { defaultEventFieldName = _fieldName; } } return defaultEventFieldName; } NormalizedFieldAndValue();  NormalizedFieldAndValue(String field, byte[] value);  NormalizedFieldAndValue(String field, byte[] value, boolean expectBinary);  NormalizedFieldAndValue(String field, String value);  NormalizedFieldAndValue(String field, String value, Map<String,String> markings);  NormalizedFieldAndValue(String field, String value, String group, String subGroup);  NormalizedFieldAndValue(NormalizedContentInterface n); static String decode(byte[] bytes, boolean expectBinary); boolean isGrouped(); void setGrouped(boolean grouped); String getSubGroup(); void setSubGroup(String group); String getGroup(); void setGroup(String group); void setIndexedFieldName(String name); @Override void setFieldName(String name); void setEventFieldName(String name); String getEventFieldName(); int hashCode(); boolean equals(Object o); String toString();  }### Answer:
@Test public void testGetDefaultEventFieldName() { NormalizedContentInterface nci = new NormalizedFieldAndValueTest.GroupedInstance(); NormalizedFieldAndValue uut = new NormalizedFieldAndValue(nci); uut.setEventFieldName(null); String generatedEventFieldName = uut.getEventFieldName(); String expectedName = "TestIndexedField.GROUP.SUBGROUP"; Assert.assertEquals("NormalizedFieldAndValue.getEventFieldName failed to generate the expected default Event Field Name", expectedName, generatedEventFieldName); nci = new NormalizedFieldAndValueTest.NonGroupedInstance(); uut = new NormalizedFieldAndValue(nci); expectedName = "TestIndexedField"; generatedEventFieldName = uut.getEventFieldName(); Assert.assertEquals("NormalizedFieldAndValue.getEventFieldName failed to generate the expected default Event Field Name", expectedName, generatedEventFieldName); }