@Test public void testSecureMacroEvaluation() { String key = "key"; String keycontent = "somecontent"; Map<String, String> properties = ImmutableMap.of("x", "${secure(" + key + ")}"); SecureStore secureStore = FakeSecureStore.builder() .putValue(NamespaceId.DEFAULT.getNamespace(), key, keycontent) .build(); Map<String, String> evaluated = ProvisioningService.evaluateMacros(secureStore, "Bob", NamespaceId.DEFAULT.getNamespace(), properties); Assert.assertEquals(keycontent, evaluated.get("x")); }