### Question:
TargetDataInstance extends CObject { public CObjectCollection<Gate> getGates() { return gates; } TargetDataInstance(final TargetData td); @Override boolean isValid(); AssignableDevice getAssignableDeviceByName(final String name); LogicConstraints getLogicConstraints(); CObjectCollection<Part> getParts(); CObjectCollection<Gate> getGates(); CObjectCollection<InputSensor> getInputSensors(); CObjectCollection<OutputDevice> getOutputDevices(); CObjectCollection<GeneticLocation> getGeneticLocations();  }### Answer:
@Test public void getGates_None_SizeShouldBe7() { assert (tdi.getGates().size() == 7); }