Ouch ;-) Could you instead created an `expected` ScalingPolicy object and then simply do something like
```
assertEquals(g.getScalingPolicies().get(0), expected);
```
or does ScalingPolicy not do equals in the way that would be required for that?