Adding assertions for method annotations within composite id