[MTOOLCHAINS-7] added an IT that check expected failure, and fixed the java annotations migration (yes, the IT was immediately useful)