API testing is best done with rest-assured.
Do you have any recommendations on how to access a variable from the app code? Just viewing it that way I can test against it.