### Question:
RepairResource { public RepairResource(String dataCenter, String resourceName) { myDataCenter = dataCenter; myResourceName = checkNotNull(resourceName); } RepairResource(String dataCenter, String resourceName); String getDataCenter(); String getResourceName(int n); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testRepairResource() { RepairResource repairResource = new RepairResource("dc1", "my-resource"); assertThat(repairResource.getDataCenter()).isEqualTo("dc1"); assertThat(repairResource.getResourceName(1)).isEqualTo("RepairResource-my-resource-1"); assertThat(repairResource.getResourceName(2)).isEqualTo("RepairResource-my-resource-2"); }