### Question:
ComputeResourceAccessor { public static ComputeResource getComputeResource() { if(computeResource==null) { try { computeResource = new ComputeResource(); computeResource.boot(); } catch (ConfigurationException | UnknownHostException e) { logger.error("Unable to create default ComputeResource", e); } } return computeResource; }  static ComputeResource getComputeResource();  }### Answer:
@Test public void getComputeResource() throws Exception { ComputeResource computeResource = ComputeResourceAccessor.getComputeResource(); ComputeResourceUtilization cru = computeResource.getComputeResourceUtilization(); assertNotNull(cru); String systemCPUPercent = formatPercent(cru.getCpuUtilization().getValue()); assertNotNull(systemCPUPercent); String processCPUUtilization = formatPercent(getMeasuredValue(SystemWatchID.PROC_CPU, cru)); assertNotNull(processCPUUtilization); String systemMemoryTotal = format(cru.getSystemMemoryUtilization().getTotal(), "MB"); assertNotNull(systemMemoryTotal); String systemMemoryUtilPercent = formatPercent(cru.getSystemMemoryUtilization().getValue()); assertNotNull(systemMemoryUtilPercent); String processMemoryTotal = format(cru.getProcessMemoryUtilization().getUsedHeap()," MB"); assertNotNull(processMemoryTotal); String processMemoryUtilPercent = formatPercent(getMeasuredValue(SystemWatchID.JVM_MEMORY, cru)); assertNotNull(processMemoryUtilPercent); }