add SpareResource dependency in pom. add MaxOnline in model test