### Question:
MetadataUtils { public static boolean isBasicElementCollectionField(Field collectionField) { if (!Collection.class.isAssignableFrom(collectionField.getType()) && !Map.class.isAssignableFrom(collectionField.getType())) { return false; } List<Class<?>> genericClasses = PropertyAccessorHelper.getGenericClasses(collectionField); for (Class genericClass : genericClasses) { if (genericClass.getAnnotation(Embeddable.class) != null) { return false; } } return true; }  static void populateColumnAndSuperColumnMaps(EntityMetadata m, Map<String, Field> columnNameToFieldMap,
            Map<String, Field> superColumnNameToFieldMap, final KunderaMetadata kunderaMetadata); static Map<String, Field> createColumnsFieldMap(EntityMetadata m, EmbeddableType superColumn); static Map<String, Field> createSuperColumnsFieldMap(final EntityMetadata m,
            final KunderaMetadata kunderaMetadata); static Collection getEmbeddedCollectionInstance(Field embeddedCollectionField); static Object getEmbeddedGenericObjectInstance(Field embeddedCollectionField); static String getEmbeddedCollectionPrefix(String embeddedCollectionName); static String getEmbeddedCollectionPostfix(String embeddedCollectionName); static String serializeKeys(Set<String> foreignKeys); static Set<String> deserializeKeys(String foreignKeys); static void setSchemaAndPersistenceUnit(EntityMetadata m, String schemaStr, Map puProperties); static boolean useSecondryIndex(ClientMetadata clientMetadata); static String getMappedName(EntityMetadata parentMetadata, Relation relation,
            final KunderaMetadata kunderaMetadata); static String getEnclosingEmbeddedFieldName(EntityMetadata m, String criteria, boolean viaColumnName,
            final KunderaMetadata kunderaMetadata); static boolean isEmbeddedAtributeIndexable(Field embeddedField); static boolean isColumnInEmbeddableIndexable(Field embeddedField, String columnFieldName); static boolean defaultTransactionSupported(final String persistenceUnit,
            final KunderaMetadata kunderaMetadata); static boolean isSchemaAttributeRequired(final String persistenceUnit, final KunderaMetadata kunderaMetadata); static boolean indexSearchEnabled(final String persistenceUnit, final KunderaMetadata kunderaMetadata); static boolean isBasicElementCollectionField(Field collectionField); static boolean containsBasicElementCollectionField(final EntityMetadata m,
            final KunderaMetadata kunderaMetadata); static void onJPAColumnMapping(final EntityType entityType, EntityMetadata entityMetadata); static boolean onCheckValidationConstraints(Field attribute); static boolean onCheckEmbeddableAttribute(Field attribute);  }### Answer:
@Test public void testIsBasicElementCollectionField() { try { EntityMetadata m = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, Article.class); Assert.assertNotNull(m.toString()); Field f = Article.class.getDeclaredField("body"); Assert.assertFalse(MetadataUtils.isBasicElementCollectionField(f)); Field f1 = Article.class.getDeclaredField("comments"); Assert.assertTrue(MetadataUtils.isBasicElementCollectionField(f1)); Field f2 = Article.class.getDeclaredField("tags"); Assert.assertTrue(MetadataUtils.isBasicElementCollectionField(f2)); Field f3 = Article.class.getDeclaredField("likedBy"); Assert.assertTrue(MetadataUtils.isBasicElementCollectionField(f3)); } catch (SecurityException e) { Assert.fail(e.getMessage()); } catch (NoSuchFieldException e) { Assert.fail(e.getMessage()); } }