@Test
public void testGetPercent() throws Exception {

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