set(Projections.bean(AssetThreat.class,
assetThreat.id,
set(Projections.bean(Threat.class, threat.id)).as("threats")))
.as("assetThreats")));
Projectable projectable = createMock(Projectable.class);
expect(projectable.iterate(new QTuple(
riskAnalysis.id,
riskAnalysis.id,
assetThreat.id,
Projections.bean(Threat.class, threat.id))))
.andReturn(new EmptyCloseableIterator());