@Test
public void testFromDb() throws MapperException {

    LOG.info("testFromDb");
    Assert.assertEquals(Locale.ENGLISH, mapper.fromDb("en"));
    Assert.assertEquals(Locale.US, mapper.fromDb("en_US"));
    Assert.assertEquals(new Locale("nl", "NL"), mapper.fromDb("nl_NL"));
    Assert.assertEquals(new Locale("en", "NL"), mapper.fromDb("en_NL"));
    Assert.assertEquals(new Locale("en", "NL"), mapper.fromDb("en_NL"));
    Assert.assertEquals(new Locale("es", "ES", "Traditional_WIN"), mapper.fromDb("es_ES_Traditional_WIN"));
}