def METHOD_NAME(self):
    th_boxes = torch.Tensor([10, 10, 20, 20]).reshape(1, 1, 4)
    center = (15, 15)
    angle = -45
    boxes = HorizontalBoxes(th_boxes)
    boxes.rotate_(center, angle)
    rotated_boxes_th = torch.Tensor([
        15 - 5 * sqrt(2), 15 - 5 * sqrt(2), 15 + 5 * sqrt(2),
        15 + 5 * sqrt(2)
    ]).reshape(1, 1, 4)
    assert_allclose(boxes.tensor, rotated_boxes_th)