### Question:
PredefinedFields { static boolean doesFieldNameMatchArrayCountPattern(String fieldName){ if(fieldName == null){ return false; } return fieldName.endsWith(FIELD_ARRAY_COUNT_POSTFIX); } private  PredefinedFields(); static void ensurePredefinedFields(EntityMetadata md); static void updateArraySizes(EntityMetadata md, JsonNodeFactory factory, JsonDoc doc); static boolean isFieldObjectType(String fieldName); static boolean isFieldAnArrayCount(String fieldName, Fields metadataFields); static boolean isPredefinedField(String fieldName, Fields fields); static String createArrayFieldNameFromCountField(String countField); static String createArrayCountFieldName(String arrayFieldName); static final String OBJECTTYPE_FIELD; static final String FIELD_ARRAY_COUNT_POSTFIX; static final Path OBJECTTYPE_PATH; }### Answer:
@Test public void testDoesFieldNameMatchArrayCountPattern_True(){ assertTrue(PredefinedFields.doesFieldNameMatchArrayCountPattern("somearray" + PredefinedFields.FIELD_ARRAY_COUNT_POSTFIX)); }
@Test public void testDoesFieldNameMatchArrayCountPattern_NullValue(){ assertFalse(PredefinedFields.doesFieldNameMatchArrayCountPattern(null)); }
@Test public void testDoesFieldNameMatchArrayCountPattern_False(){ assertFalse(PredefinedFields.doesFieldNameMatchArrayCountPattern("somearray")); }