### Question:
MetadataUtils { public static boolean containsBasicElementCollectionField(final EntityMetadata m, final KunderaMetadata kunderaMetadata) { Metamodel metaModel = kunderaMetadata.getApplicationMetadata().getMetamodel(m.getPersistenceUnit()); EntityType entityType = metaModel.entity(m.getEntityClazz()); Iterator<Attribute> iter = entityType.getAttributes().iterator(); while (iter.hasNext()) { Attribute attr = iter.next(); if (attr.isCollection() && !attr.isAssociation() && isBasicElementCollectionField((Field) attr.getJavaMember())) { return true; } } return false; }  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 testContainsBasicElementCollectionField() { EntityMetadata m1 = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, Article.class); Assert.assertNotNull(m1); Assert.assertTrue(MetadataUtils.containsBasicElementCollectionField(m1, kunderaMetadata)); Assert.assertNotNull(m1.toString()); EntityMetadata m2 = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, SingularEntityEmbeddable.class); Assert.assertNotNull(m2); Assert.assertFalse(MetadataUtils.containsBasicElementCollectionField(m2, kunderaMetadata)); Assert.assertNotNull(m2.toString()); }