@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));
}