### Question:
KeyStore { public static KeyStore of(String metadataLocation, boolean kmsEnabled) { return new KeyStore(metadataLocation, kmsEnabled); } private  KeyStore(String metadataLocation, boolean kmsEnabled); PrivateKey getKey(String path); PrivateKey getKeyOrThrow(String path); static KeyStore of(String metadataLocation, boolean kmsEnabled);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testNullMetadataLocation() { KeyStore.of(null, false); }