ECPoint.F2m bad = new ECPoint.F2m(fp.curve, null,
ECPoint.F2m bad = new ECPoint.F2m(f2m.curve, null,
    public void testPointCreationConsistency()    {        try        {            ECPoint.Fp bad = new ECPoint.Fp(fp.curve, new ECFieldElement.Fp(                    fp.q, new BigInteger("12")), null);            fail();        }        catch (IllegalArgumentException expected)        {        }        try        {            ECPoint.Fp bad = new ECPoint.Fp(fp.curve, null,                    new ECFieldElement.Fp(fp.q, new BigInteger("12")));            fail();        }        catch (IllegalArgumentException expected)        {        }        try        {            ECPoint.F2m bad = new ECPoint.F2m(fp.curve, new ECFieldElement.F2m(                    f2m.m, f2m.k1, new BigInteger("1011")), null);            fail();        }        catch (IllegalArgumentException expected)        {        }        try        {            ECPoint.F2m bad = new ECPoint.F2m(fp.curve, null,                    new ECFieldElement.F2m(f2m.m, f2m.k1,                            new BigInteger("1011")));            fail();        }        catch (IllegalArgumentException expected)        {        }    }