@Test
public void testGetStatus() throws Exception {

  Collection<HostRoleCommandEntity> tasks =
      getTaskEntities(HostRoleStatus.COMPLETED, HostRoleStatus.COMPLETED, HostRoleStatus.PENDING,
          HostRoleStatus.PENDING, HostRoleStatus.PENDING);
  CalculatedStatus status = CalculatedStatus.statusFromTaskEntities(tasks, false);
  assertEquals(HostRoleStatus.IN_PROGRESS, status.getStatus());
}