* Test if isMixin() returns false if applied on a primary node type and true
* on a mixin node type.
*/
public void testIsMixin() throws RepositoryException {
NodeTypeIterator primaryTypes = manager.getPrimaryNodeTypes();
assertFalse("testIsMixin() must return false if applied on a " +
"primary node type",
primaryTypes.nextNodeType().isMixin());
// if a mixin node type exist, test if isMixin() returns true
NodeTypeIterator mixinTypes = manager.getMixinNodeTypes();
if (getSize(mixinTypes) > 0) {
// need to re-aquire iterator {@link #getSize} may consume iterator
mixinTypes = manager.getMixinNodeTypes();
assertTrue("testIsMixin() must return true if applied on a " +
"mixin node type",
mixinTypes.nextNodeType().isMixin());
}
// else skip the test for mixin node types
}