@Test
public void testGetDirection() {

    assertEquals(PDViewerPreferences.READING_DIRECTION.L2R,
            ViewerPreferencesUtils.getDirection(PdfDirection.LEFT_TO_RIGHT));
    assertEquals(PDViewerPreferences.READING_DIRECTION.R2L,
            ViewerPreferencesUtils.getDirection(PdfDirection.RIGHT_TO_LEFT));
}