Changed to a workign domain.xml added realm and now you should write
testcases for it