@Test
public void testPingCommandStatusApiException() throws ConfigurationException, NiciraNvpApiException {
_resource.configure("NiciraNvpResource", _parameters);
ControlClusterStatus ccs = mock(ControlClusterStatus.class);
when(ccs.getClusterStatus()).thenReturn("unstable");
when(_nvpApi.getControlClusterStatus()).thenThrow(new NiciraNvpApiException());
PingCommand ping = _resource.getCurrentStatus(42);
assertTrue(ping == null);
}