@Test
public void expandPageNoBoxes() throws IOException, TaskIOException {

    try (PDDocument document = PDFParser.parse(SeekableSources
            .inMemorySeekableSourceFrom(getClass().getClassLoader().getResourceAsStream("pdf/one_page.pdf")))) {
        PdfScaler scaler = new PdfScaler(ScaleType.PAGE);
        scaler.scale(document, 1.5);
        PDPage page = document.getPage(0);
        PDRectangle expected = new PDRectangle(0, 0, 892.5f, 1263f);
        assertEquals(expected, page.getMediaBox());
        assertEquals(expected, page.getCropBox());
        assertEquals(expected, page.getTrimBox());
        assertEquals(expected, page.getArtBox());
        assertEquals(expected, page.getBleedBox());
    }
}