def METHOD_NAME(self, mock_sys_error, mock_print_usage,  mock_argparse):
    """Test main() with forseti_db not set."""
    expected_exit_code = 5
    mock_argparse.return_value = NameSpace(
        endpoint='[::]:50051',
        services=['scanner'],
        forseti_db=None,
        config_file_path='/what/ever',
        log_level='info',
        enable_console_log=False)
    mock_print_usage.return_value = None
    with mock.patch.object(file_loader, "isfile") as mock_isfile:
        mock_isfile.return_value = True
        with mock.patch.object(file_loader, "access") as mock_access:
            mock_access.return_value = True
            with self.assertRaises(SystemExit) as e:
                server.main()
    self.assertEqual(expected_exit_code, e.exception.code)
    self.assertTrue(mock_sys_error.write.called)