Mbean are difficult to use in unit test