This will work on android 

See https://github.com/secondsun/aerogear-android-integration-tests/tree/security for tests