my old solution of junit categories