@Test
public void testGet() {

    // przypadki testowe
    Object[][] tests = {
        new Object[]{"dd-MM-yyyy", sdf("dd-MM-yyyy")},
        new Object[]{"dd.MM.yyyy", sdf("dd.MM.yyyy")},
        new Object[]{"yyyy/MM/dd", sdf("yyyy/MM/dd")}
    };
    // uruchomienie testow
    for (Object[] row : tests) {
        String pattern = (String) row[0];
        SimpleDateFormat expected = (SimpleDateFormat) row[1];
        SimpleDateFormat result = new NonAbstractPool().get(pattern);
        assertEquals(expected, result);
    }
}