ViewerPreferencesUtils { public static NON_FULL_SCREEN_PAGE_MODE getNFSMode(PdfNonFullScreenPageMode nfsMode) { return NFS_MODE_CACHE.get(nfsMode); } private  ViewerPreferencesUtils(); static NON_FULL_SCREEN_PAGE_MODE getNFSMode(PdfNonFullScreenPageMode nfsMode); static PageMode getPageMode(PdfPageMode mode); static PageLayout getPageLayout(PdfPageLayout layout); static READING_DIRECTION getDirection(PdfDirection direction); static DUPLEX getDuplex(PdfDuplex duplex); static PRINT_SCALING getPrintScaling(PdfPrintScaling scaling); static void setBooleanPreferences(PDViewerPreferences preferences, Set<PdfBooleanPreference> enabled);  }
@Test public void testGetNFSMode() { assertEquals(PDViewerPreferences.NON_FULL_SCREEN_PAGE_MODE.UseNone, ViewerPreferencesUtils.getNFSMode(PdfNonFullScreenPageMode.USE_NONE)); assertEquals(PDViewerPreferences.NON_FULL_SCREEN_PAGE_MODE.UseOC, ViewerPreferencesUtils.getNFSMode(PdfNonFullScreenPageMode.USE_OC)); assertEquals(PDViewerPreferences.NON_FULL_SCREEN_PAGE_MODE.UseOutlines, ViewerPreferencesUtils.getNFSMode(PdfNonFullScreenPageMode.USE_OUTLINES)); assertEquals(PDViewerPreferences.NON_FULL_SCREEN_PAGE_MODE.UseThumbs, ViewerPreferencesUtils.getNFSMode(PdfNonFullScreenPageMode.USE_THUMNS)); }