}
private void calculate(double imageWidth, double imageHeight, int slideWidth, int slideHeight, double expectedWidth, double expectedHeight) {
// given
// when
CxCy scale = CxCy.scaleToFit(imageWidth, imageHeight, slideWidth, slideHeight);
// then
assertThat(scale.getCx(), is((long)expectedWidth));
assertThat(scale.getCy(), is((long)expectedHeight));
}