assertSame(Mountable.Select("friendly"), pipe);
}
@Test
public void selectCoexistsWithTruss() throws Exception {
Element hangPoint1 = new IIOMetadataNode("hangpoint");
hangPoint1.setAttribute("id", "jim");
hangPoint1.setAttribute("x", "100");
hangPoint1.setAttribute("y", "102");
new HangPoint(hangPoint1);
Element hangPoint2 = new IIOMetadataNode("hangpoint");
hangPoint2.setAttribute("id", "joan");
hangPoint2.setAttribute("x", "200");
hangPoint2.setAttribute("y", "202");
new HangPoint(hangPoint2);
Element suspendElement1 = new IIOMetadataNode("suspend");
suspendElement1.setAttribute("ref", "jim");
suspendElement1.setAttribute("distance", "1");
Element suspendElement2 = new IIOMetadataNode("suspend");
suspendElement2.setAttribute("ref", "joan");
suspendElement2.setAttribute("distance", "2");
Element trussElement = new IIOMetadataNode("truss");
trussElement.setAttribute("id", "fred");
trussElement.setAttribute("size", "12");
trussElement.setAttribute("length", "120");
trussElement.appendChild(suspendElement1);
trussElement.appendChild(suspendElement2);
Truss truss = new Truss(trussElement);
element.setAttribute("id", "friendly");
Pipe pipe = new Pipe(element);
assertSame(Mountable.Select("friendly"), pipe);