JUnit testing REST Services and Spring MVC In this sample, we demonstrated a simple LoanRequest application where in we create a REST Services and write.JUnit test to test it. Refer to this blog for more details.