### Question:
AEADs { public AEAD get(final EncryptionLevel level) { requireNonNull(level); if (level == EncryptionLevel.Initial) { final AEAD aead = initialAead.get(); if (aead == null) { throw new IllegalStateException("Initial AEAD not set"); } log.debug("Using initial AEAD: {}", aead); return aead; } else if (level == EncryptionLevel.Handshake) { final AEAD aead = handshakeAead.get(); if (aead == null) { throw new IllegalStateException("Handshake AEAD not set"); } log.debug("Using handshake AEAD: {}", aead); return aead; } else { final AEAD aead = oneRttAead.get(); if (aead == null) { throw new IllegalStateException("1-RTT AEAD not set"); } log.debug("Using 1-RTT AEAD: {}", aead); return aead; } } AEADs(final AEAD initialAead); boolean available(final EncryptionLevel level); AEAD get(final EncryptionLevel level); void unsetInitialAead(); void unsetHandshakeAead(); void setHandshakeAead(final AEAD handshakeAead); void setOneRttAead(final AEAD oneRttAead);  }### Answer:
@Test(expected = IllegalStateException.class) public void getHandshakeNotSet() { aeads.get(EncryptionLevel.Handshake); }
@Test(expected = IllegalStateException.class) public void getOneRttNotSet() { aeads.get(EncryptionLevel.OneRtt); }
@Test(expected = NullPointerException.class) public void getNullEncryptionLevel() { aeads.get(null); }