code: public static void assertPrimaryNodeType(final Node node, final String nodeType) throws RepositoryException {
          final NodeType primaryNodeType = node.getPrimaryNodeType();
          assertEquals(nodeType, primaryNodeType.getName());
      }
docs: Asserts the primary node type of the node
  
  @param node
  the node whose primary node type should be checked
  @param nodeType
  the nodetype that is asserted to be the node type of the node
  @throws RepositoryException