You will also need a new unit test that acts only on a ClassMetadataInfo mock and alters join table and table values.