### Question:
AttributeProperties { public Properties toWorkerProperties() { Properties properties = new Properties(); fill(properties, OBJECT_PRIVATE, privateTemplateMap); fill(properties, OBJECT_PUBLIC, publicTemplateMap); return properties; } AttributeProperties(Map<String, List<Attribute>> publicTemplate, Map<String, List<Attribute>> privateTemplate); static AttributeProperties fromWorkerProperties(Properties properties); List<Attribute> getPublicTemplate(final String keyType); List<Attribute> getPrivateTemplate(final String keyType); Properties toWorkerProperties(); @Override String toString();  }### Answer:
@Test public void testToWorkerProperties() { LOG.info(">testToWorkerProperties"); Properties properties = new Properties(); properties.setProperty("ATTRIBUTE.PRIVATE.RSA.CKA_VERIFY", "True"); properties.setProperty("OTHER", "true"); properties.setProperty("ATTRIBUTE.PRIVATE.RSA.CKA_ALLOWED_MECHANISMS", "SHA256_RSA_PKCS, RSA_PKCS_KEY_PAIR_GEN"); properties.setProperty("ATTRIBUTES", "Attributes value"); properties.setProperty("ATTRIBUTE.PRIVATE.ECDSA.0x162", "false"); properties.setProperty("ATTRIBUTE", "Attribute value"); Properties actual = AttributeProperties.fromWorkerProperties(properties).toWorkerProperties(); assertEquals("ATTRIBUTE.PRIVATE.RSA.CKA_VERIFY", "true", actual.get("ATTRIBUTE.PRIVATE.RSA.CKA_VERIFY")); assertEquals("ATTRIBUTE.PRIVATE.RSA.CKA_ALLOWED_MECHANISMS", "CKM_SHA256_RSA_PKCS, CKM_RSA_PKCS_KEY_PAIR_GEN", actual.get("ATTRIBUTE.PRIVATE.RSA.CKA_ALLOWED_MECHANISMS")); assertEquals("ATTRIBUTE.PRIVATE.ECDSA.CKA_EXTRACTABLE", "false", actual.get("ATTRIBUTE.PRIVATE.ECDSA.CKA_EXTRACTABLE")); }