### Question:
KeyShare implements Extension { @Override public ExtensionType getType() { return ExtensionType.KEY_SHARE; } private  KeyShare(final SortedMap<Group, byte[]> keys); static KeyShare parse(final ByteBuf bb, final boolean isClient); static KeyShare of(final Group group, final byte[] publicKey); static KeyShare of(
      final Group group1, final byte[] key1, final Group group2, final byte[] key2); @Override ExtensionType getType(); SortedMap<Group, byte[]> getKeys(); Optional<byte[]> getKey(final Group group); @Override void write(final ByteBuf bb, final boolean isClient); @Override String toString();  }### Answer:
@Test public void getType() { assertEquals(ExtensionType.KEY_SHARE, ext.getType()); }