### Question:
AstNodeFactory { public Name name( String name ) { assert name != null; return context.getValueFactories().getNameFactory().create(name); } AstNodeFactory( ExecutionContext context );  AstNodeFactory(); Name name( String name ); AstNode node( String name ); AstNode node( String name,
                         AstNode parent,
                         Object... types ); AstNode node( String name,
                         AstNode parent,
                         Name type ); void setType( AstNode node,
                         Name type ); List<AstNode> getChildrenForType( AstNode astNode,
                                             Name nodeType ); AstNode getChildforNameAndType( AstNode astNode,
                                           String name,
                                           Name nodeType ); boolean hasMixinType( AstNode node,
                                 Name mixinType ); int createInt( String stringValue );  }### Answer:
@Test public void shouldCreateName() { String nodeName = "myNodeName"; Name name = nodeFactory.name(nodeName); assertNotNull(name); assertEquals(nodeName, name.getString()); }