testing spring for rest services