def METHOD_NAME(self):
    # Tests various get() and set() methods.
    sampler = pints.NestedEllipsoidSampler(self.log_prior)
    # Active points
    x = sampler.n_active_points() + 1
    self.assertNotEqual(sampler.n_active_points(), x)
    sampler.set_n_active_points(x)
    self.assertEqual(sampler.n_active_points(), x)
    self.assertRaisesRegex(
        ValueError, 'greater than 5', sampler.set_n_active_points, 5)
    # Rejection samples
    x = sampler.n_rejection_samples() + 1
    self.assertNotEqual(sampler.n_rejection_samples(), x)
    sampler.set_n_rejection_samples(x)
    self.assertEqual(sampler.n_rejection_samples(), x)
    self.assertRaisesRegex(
        ValueError, 'negative', sampler.set_n_rejection_samples, -1)
    # Enlargement factor
    x = sampler.enlargement_factor() * 2
    self.assertNotEqual(sampler.enlargement_factor(), x)
    sampler.set_enlargement_factor(x)
    self.assertEqual(sampler.enlargement_factor(), x)
    self.assertRaisesRegex(
        ValueError, 'exceed 1', sampler.set_enlargement_factor, 0.5)
    self.assertRaisesRegex(
        ValueError, 'exceed 1', sampler.set_enlargement_factor, 1)
    # Ellipsoid update gap
    x = sampler.ellipsoid_update_gap() * 2
    self.assertNotEqual(sampler.ellipsoid_update_gap(), x)
    sampler.set_ellipsoid_update_gap(x)
    self.assertEqual(sampler.ellipsoid_update_gap(), x)
    self.assertRaisesRegex(
        ValueError, 'exceed 1', sampler.set_ellipsoid_update_gap, 0.5)
    self.assertRaisesRegex(
        ValueError, 'exceed 1', sampler.set_ellipsoid_update_gap, 1)
    # dynamic enlargement factor
    self.assertTrue(not sampler.dynamic_enlargement_factor())
    sampler.set_dynamic_enlargement_factor(1)
    self.assertTrue(sampler.dynamic_enlargement_factor())
    # alpha
    self.assertRaises(ValueError, sampler.set_alpha, -0.2)
    self.assertRaises(ValueError, sampler.set_alpha, 1.2)
    self.assertEqual(sampler.alpha(), 0.2)
    sampler.set_alpha(0.4)
    self.assertEqual(sampler.alpha(), 0.4)
    # initial phase
    self.assertTrue(sampler.needs_initial_phase())
    self.assertTrue(sampler.in_initial_phase())
    sampler.set_initial_phase(False)
    self.assertTrue(not sampler.in_initial_phase())
    self.assertEqual(sampler.name(), 'Nested ellipsoidal sampler')