[aerogear-issues] [JBoss JIRA] (AGDROID-792) Refactor either core or auth so that the same approach is used in test cases