Working migration to bpm suite 6 api for unit test.