ServerHello extends HandshakeMessage { CertificateType getServerCertificateType() { return getCertificateType(ExtensionType.SERVER_CERT_TYPE); } ServerHello(ProtocolVersion version, Random random, SessionId sessionId,
			CipherSuite cipherSuite, CompressionMethod compressionMethod, HelloExtensions extensions,
			InetSocketAddress peerAddress); @Override byte[] fragmentToByteArray(); static HandshakeMessage fromReader(DatagramReader reader, InetSocketAddress peerAddress); @Override HandshakeType getMessageType(); @Override int getMessageLength(); ProtocolVersion getServerVersion(); Random getRandom(); SessionId getSessionId(); CipherSuite getCipherSuite(); CompressionMethod getCompressionMethod(); HelloExtensions getExtensions(); ConnectionIdExtension getConnectionIdExtension(); @Override String toString();  }
@Test public void testGetServerCertificateType() { givenAServerHelloWith(CertificateType.RAW_PUBLIC_KEY, null); assertThat(serverHello.getServerCertificateType(), is(CertificateType.RAW_PUBLIC_KEY)); }