### Question:
ResourceNode extends BlockNode { public String getType() { return type; } ResourceNode(String type, Node name, List<Node> body);  ResourceNode(GyroParser.ResourceContext context); String getType(); Node getName(); @Override R accept(NodeVisitor<C, R, X> visitor, C context);  }### Answer:
@Test void getType() { String type = "foo"; ResourceNode node = new ResourceNode(type, mock(Node.class), Collections.emptyList()); assertThat(node.getType()).isEqualTo(type); }