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