### Question:
ECIESPublicKeyEncoder implements KeyEncoder { @Override public byte[] getEncoded(AsymmetricKeyParameter asymmetricKeyParameter) { return ((ECPublicKeyParameters) asymmetricKeyParameter).getQ().getEncoded(false); }  @Override byte[] getEncoded(AsymmetricKeyParameter asymmetricKeyParameter);  }### Answer:
@Test public void getEncoded() { ECPublicKeyParameters param = new ECPublicKeyParameters(CURVE.getCurve().decodePoint(pubKey), CURVE); ECIESPublicKeyEncoder encoder = new ECIESPublicKeyEncoder(); Assert.assertNotNull(encoder.getEncoded(param)); }