### Question:
KieServerContainerDeployment { public static Set<KieServerContainerDeployment> fromString(String str) { return fromString(str, true); } KieServerContainerDeployment(String containerId, ReleaseId releaseId);  KieServerContainerDeployment(String containerId, String containerAlias, ReleaseId releaseId); String getContainerId(); String getContainerAlias(); ReleaseId getReleaseId(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static String toString(Collection<KieServerContainerDeployment> deployments); static Set<KieServerContainerDeployment> fromString(String str); static Set<KieServerContainerDeployment> fromString(String str, boolean onlyLatest);  }### Answer:
@Test public void testDeploymentFiltering() throws Exception { Set<KieServerContainerDeployment> deployments = KieServerContainerDeployment.fromString(serverContainerDeployment, false); assertEquals(9, deployments.size()); deployments = KieServerContainerDeployment.fromString(serverContainerDeployment, true); assertEquals(4, deployments.size()); deployments = KieServerContainerDeployment.fromString(serverContainerDeployment); assertEquals(4, deployments.size()); }