Deprecated junit api replaced