Please write a test for the Forio Epicenter authentication API at [login to view URL]
* test that given a correct username and password it will return a 200 status code and an object with an access_token
* test that given a failed username and password it will return a 401 status code.
* test that the access_token has three parts separated by a period. This is a Json Web Token (JWT). It's not necessary to fully verify this is a valid JWT-- just verify that it has three parts. Example JWT at [login to view URL]
The test should be written in Java and use JUnit or Test NG. It should have a "main" method and (ideally) be able to be built with Maven (though that's not a requirement). Include a "readme" file with instructions on how to build and run it.
Base the test on the Forio APIs documented in the section "Creating a User Access token".
[login to view URL]
You will want to sign up at [login to view URL] for an account. Use a generic password and then test that user/password in your test.