public async Task FinishLoanDetails_Test()
        {
            var searchServiceMock       = new Mock <ISearchService>().Object;
            var loanServiceMock         = new Mock <ILoanService>().Object;
            var encodeDecodeServiceMock = new Mock <IEncodeDecodeService>().Object;

            var defaultContext = new DefaultHttpContext()
            {
                User = new ClaimsPrincipal()
            };

            var controller = new LoanController(loanServiceMock, searchServiceMock, encodeDecodeServiceMock)
            {
                ControllerContext = new ControllerContext()
                {
                    HttpContext = defaultContext
                }
            };

            var id = 5;

            var result = await controller.FinishLoanDetails(id);

            Assert.IsInstanceOfType(result, typeof(ViewResult));
        }