def METHOD_NAME(self):
    atom1 = Atom(name="atom1")
    atom2 = Atom(name="atom2")
    atom3 = Atom(name="atom3")
    atom4 = Atom(name="atom4")
    with pytest.raises(ValidationError):
        Dihedral(
            connection_members=[atom1, atom2, atom3, atom4],
            dihedral_type="Fake dihedraltype",
        )