assertTrue(cycled.getPositionOutputs().isEmpty());
assertTrue(cycled.getSecurityTypes().isEmpty());
}
public void testCyclePopulatedObject() {
final AvailableOutputsImpl outputs = new AvailableOutputsImpl();
outputs.portfolioNodeOutput("V", ValueProperties.with("P", "A", "B").get());
outputs.positionOutput("V", "Swap", ValueProperties.with("P", "A", "C").get());
outputs.positionOutput("V", "Option", ValueProperties.with("P", "A", "D").get());
final AvailableOutputs cycled = cycleObject(AvailableOutputs.class, outputs);
assertEquals(cycled.getOutputs().size(), 1);
AvailableOutput output = cycled.getOutputs().iterator().next();
assertEquals(output.getValueName(), "V");
assertEquals(output.getProperties(), ValueProperties.with("P", "A", "B", "C", "D").get());