def METHOD_NAME(self, prefactor, accuracy):
    p = self.system.part.by_id(0)
    f_measured = p.f
    energy_measured = self.system.analysis.energy()["total"]
    target_energy_config = -1.00242505606 * prefactor
    target_force_z_config = 0.99510759 * prefactor
    self.assertAlmostEqual(
        f_measured[0], 0, delta=self.allowed_error,
        msg="Measured force in x deviates too much from analytical result")
    self.assertAlmostEqual(
        f_measured[1], 0, delta=self.allowed_error,
        msg="Measured force in y deviates too much from analytical result")
    self.assertAlmostEqual(
        f_measured[2], target_force_z_config, delta=accuracy,
        msg="Measured force in z deviates too much from analytical result")
    self.assertAlmostEqual(
        energy_measured, target_energy_config, delta=self.allowed_error,
        msg="Measured energy deviates too much from analytical result")