class PwEncoder {

    public static String encode(String msg) {
    	return encoder.encodePassword(msg.toCharArray(), null);
    }

}

class PwEncoderTest {

    @Test
    public void testEncode() {

        testString("test");
        testString("topolino");
        testString("");

    }

}