Fix usage of wrong junit assert