@Test public void encodingTest() { Assert.assertEquals("UTF-8", dao.getEncoding()); dao.setEncoding("ENCODING"); Assert.assertEquals("ENCODING", dao.getEncoding()); }
@Test(expected = RuntimeException.class) public void readUnsupportedEncodingTest() throws Exception { dao.setEncoding("JIBBERISH"); dao.read("TITLE"); }