types[i++] = ComputationTargetType.PRIMITIVE;
types[i++] = ComputationTargetType.POSITION;
types[i++] = ComputationTargetType.of(Foo.class);
while (i < types.length) {
final ComputationTargetType type = types[j++];
types[i++] = type.containing(ComputationTargetType.PRIMITIVE);
types[i++] = ComputationTargetType.PORTFOLIO_NODE.containing(type);
types[i++] = type.or(types[j]);
}
for (ComputationTargetType type : types) {
assertEncodeDecodeCycle(ComputationTargetType.class, type);