### Question:
ModelContentReference { public static final ContentReference fromModelAddress(PathAddress address, byte[] hash) { return new ContentReference(address.toCLIStyleString(), hash); }  static final ContentReference fromDeploymentName(String name, String hash); static final ContentReference fromDeploymentName(String name, byte[] hash); static final ContentReference fromModelAddress(PathAddress address, byte[] hash);  }### Answer:
@Test public void testFromDeploymentAddress() { byte[] hash = HashUtil.hexStringToByteArray("48d7b49e084860769d5ce03dc2223466aa46be3a"); PathAddress address = PathAddress.pathAddress(PathElement.pathElement("deployment", "wildfly-ejb-in-war.war")); ContentReference result = ModelContentReference.fromModelAddress(address, hash); ContentReference expResult = new ContentReference(address.toCLIStyleString(), "48d7b49e084860769d5ce03dc2223466aa46be3a"); assertThat(result, is(expResult)); }