@Test
public void testIsPubKeyCanonicalWrongLength() {

	// Test correct prefix 4, but wrong length !65
	byte[] nonCanonicalPubkey1 = new byte[64]; nonCanonicalPubkey1[0] = 0x04;
	assertFalse(ECKey.isPubKeyCanonical(nonCanonicalPubkey1));
	// Test correct prefix 2, but wrong length !33
	byte[] nonCanonicalPubkey2 = new byte[32]; nonCanonicalPubkey2[0] = 0x02;
	assertFalse(ECKey.isPubKeyCanonical(nonCanonicalPubkey2));
	// Test correct prefix 3, but wrong length !33
	byte[] nonCanonicalPubkey3 = new byte[32]; nonCanonicalPubkey3[0] = 0x03;
	assertFalse(ECKey.isPubKeyCanonical(nonCanonicalPubkey3));
}