def METHOD_NAME(self):
    """
    Test the starting and shutdown of udocker container image
    """
    database_config = get_database_config(self.gangadir())
    if self.installations["udocker"]:
        # start the singularity container
        udocker_handler(
            action="start",
            gangadir=self.gangadir(),
            database_config=database_config
        )
        # checking if the container started up
        flag = mongod_exists(
            controller="udocker", cname=database_config["containerName"]
        )
        assert flag is not None
        # shutting down the container
        udocker_handler(
            action="quit",
            gangadir=self.gangadir(),
            database_config=database_config
        )
        # checking if the container started up
        time.sleep(2)
        flag = mongod_exists(
            controller="udocker", cname=database_config["containerName"]
        )
        assert flag is None