### Question:
DataCenterAwarePolicy implements ChainableLoadBalancingPolicy { @Override public void onRemove(Host host) { myChildPolicy.onRemove(host); markAsDown(host); } DataCenterAwarePolicy(String localDc, LoadBalancingPolicy childPolicy); static Builder builder(); @Override LoadBalancingPolicy getChildPolicy(); @Override void init(Cluster cluster, Collection<Host> hosts); @Override HostDistance distance(Host host); HostDistance distance(Host host, String dataCenter); @Override Iterator<Host> newQueryPlan(final String loggedKeyspace, final Statement statement); @Override void onUp(Host host); @Override void onDown(Host host); @Override void onAdd(Host host); @Override void onRemove(Host host); @Override void close();  }### Answer:
@Test public void testOnRemove() { DataCenterAwarePolicy policy = DataCenterAwarePolicy.builder().withChildPolicy(myChildPolicy).withLocalDc(myLocalDc).build(); policy.init(myClusterMock, myHostList); policy.onRemove(myHostDC1Mock); verify(myChildPolicy, times(1)).onRemove(myHostDC1Mock); }