@Test
public void encryptWithNonDefaultScryptParams() throws CipherException {

    ScryptParams nonDefaultScryptParams = new ScryptParams(256, 1, 1);
    byte[] privKey = Numeric.hexStringToByteArray(
            "7fe9d4b69f85c1fe15387a76e79d2b95c4c9e3fe756de3435afbc077d99d5346");
    String pw = "neo";
    String expected = "6PYLykbKbcpcZTuaSyTqBmauUkwVN4cQHjQAufT8y5YE6vCP44nxtf9r3P";
    ECKeyPair keyPair = ECKeyPair.create(privKey);
    assertThat(NEP2.encrypt(pw, keyPair, nonDefaultScryptParams), is(expected));
}