@Test
public void testSetPattern() throws Exception {

  DictionaryServiceImpl service = new DictionaryServiceImpl();
  String pattern = "123";
  service.setPattern(pattern);
  Assert.assertEquals(pattern, service.getPattern());
}