diff --git a/changes.xml b/changes.xml
index d86e164a..f94dc29e 100644
--- a/changes.xml
+++ b/changes.xml
@@ -24,6 +24,9 @@
+
+ MockComponent: Implement isContainer method.
+
Remove outdated dependency to org.apache.sling.commons.json.
diff --git a/core/src/main/java/io/wcm/testing/mock/aem/MockComponent.java b/core/src/main/java/io/wcm/testing/mock/aem/MockComponent.java
index 056fa5d3..4b7d02a5 100644
--- a/core/src/main/java/io/wcm/testing/mock/aem/MockComponent.java
+++ b/core/src/main/java/io/wcm/testing/mock/aem/MockComponent.java
@@ -19,6 +19,7 @@
*/
package io.wcm.testing.mock.aem;
+import static com.day.cq.wcm.api.NameConstants.PN_IS_CONTAINER;
import static org.apache.sling.api.resource.ResourceResolver.PROPERTY_RESOURCE_TYPE;
import java.util.Arrays;
@@ -160,7 +161,7 @@ public Resource getLocalResource(String name) {
@Override
public boolean isContainer() {
- return this.props.get("cq:isContainer", getSuperComponent() != null && getSuperComponent().isContainer());
+ return this.props.get(PN_IS_CONTAINER, getSuperComponent() != null && getSuperComponent().isContainer());
}
// --- unsupported operations ---