@Test
public void testGetDuplex() {

    assertEquals(PDViewerPreferences.DUPLEX.Simplex, ViewerPreferencesUtils.getDuplex(PdfDuplex.SIMPLEX));
    assertEquals(PDViewerPreferences.DUPLEX.DuplexFlipLongEdge,
            ViewerPreferencesUtils.getDuplex(PdfDuplex.DUPLEX_FLIP_LONG_EDGE));
    assertEquals(PDViewerPreferences.DUPLEX.DuplexFlipShortEdge,
            ViewerPreferencesUtils.getDuplex(PdfDuplex.DUPLEX_FLIP_SHORT_EDGE));
}