can't mock the JobStats class as it's made final so this is basically impossible to test