@Test
public void arrayPort() {
PortReference ref = PortReference.parse("in.BLAAH[0]");
Assert.assertEquals(ref.componentName(), "in");
Assert.assertEquals(ref.portName(), "BLAAH");
Assert.assertEquals(ref.componentAndPortName(), "in.BLAAH");
Assert.assertTrue(ref.isArrayPort());
Assert.assertEquals(ref.portIndex(), 0);
Assert.assertEquals(ref.toString(), "in.BLAAH[0]");
}