def METHOD_NAME(self):
    # Test logging includes name and custom fields.
    log_pdf = pints.toy.GaussianLogPDF([5, 5], [[4, 1], [1, 3]])
    x0 = [np.array([2, 2]), np.array([8, 8])]
    mcmc = pints.MCMCController(
        log_pdf, 2, x0, method=pints.MonomialGammaHamiltonianMCMC)
    mcmc.set_max_iterations(5)
    with StreamCapture() as c:
        mcmc.run()
    text = c.text()
    self.assertIn('Monomial-Gamma Hamiltonian Monte Carlo', text)
    self.assertIn(' Accept.', text)