### Question:
AwsInstanceView { public boolean isFastEbsEncryptionEnabled() { Object fastEbsEncryption = instanceTemplate.getParameter(AwsInstanceTemplate.FAST_EBS_ENCRYPTION_ENABLED, Object.class); if (fastEbsEncryption instanceof Boolean) { return (Boolean) fastEbsEncryption; } else if (fastEbsEncryption instanceof String) { return Boolean.parseBoolean((String) fastEbsEncryption); } return false; } AwsInstanceView(InstanceTemplate instanceTemplate); List<Volume> getVolumes(); String getFlavor(); String getGroupName(); Long getPrivateId(); Long getTemplateId(); boolean isEncryptedVolumes(); boolean isKmsEnabled(); boolean isKmsDefault(); boolean isKmsCustom(); String getKmsKey(); Integer getSpotPercentage(); Double getSpotMaxPrice(); int getOnDemandPercentage(); boolean isFastEbsEncryptionEnabled();  }### Answer:
@Test public void testEncryptionParametersWhenFast() { Map<String, Object> map = new HashMap<>(); map.put(AwsInstanceTemplate.FAST_EBS_ENCRYPTION_ENABLED, true); InstanceTemplate instanceTemplate = new InstanceTemplate("", "", 0L, Collections.emptyList(), InstanceStatus.STARTED, map, 0L, IMAGE_ID); AwsInstanceView actual = new AwsInstanceView(instanceTemplate); assertThat(actual.isFastEbsEncryptionEnabled()).isTrue(); }