assertEquals(mockState.isRunning(), true);
assertEquals(status, NodeMetadata.Status.RUNNING);
}
public void testStateNotRunningToStatusTerminated() {
State mockState = mockStateNotRunning();
NodeMetadata.Status status = function.apply(mockState);
verify(mockState);
assertEquals(mockState.isRunning(), false);
assertEquals(status, NodeMetadata.Status.TERMINATED);
}