Tests working with xml and java configuration