### Question:
KeyDataUtil { public static boolean isInline(KeyData keyData) { return Optional.of(keyData).filter(HAS_PUBLIC_KEY).filter(k -> Objects.nonNull(k.getConfig())).isPresent(); } private  KeyDataUtil(); static Class<? extends ConfigKeyPair> getKeyPairTypeFor(KeyData keyData); static boolean isLocked(KeyData keyData); static boolean isDirect(KeyData keyData); static boolean isInline(KeyData keyData); static boolean isAzure(KeyData keyData); static boolean isHashicorp(KeyData keyData); static boolean isAws(KeyData keyData); static boolean isFileSystem(KeyData keyData); static boolean isUnsupported(KeyData keyData); static ConfigKeyPair unmarshal(final KeyData keyData, final KeyEncryptor keyEncryptor); static KeyData marshal(final ConfigKeyPair keyPair);  }### Answer:
@Test public void isInline() { KeyData keyData = new KeyData(); keyData.setPublicKey("PUBLICKEY"); keyData.setConfig(mock(KeyDataConfig.class)); assertThat(KeyDataUtil.isInline(keyData)).isTrue(); }