idcert.setCert("hpj-08ha-w4gpoknpon*)&^%#");
idcert.setCreated(new Date());
idcert.setUpdated(new Date());
when(consumer.getIdCert()).thenReturn(idcert);
KeyPair keyPair = createKeyPair();
when(consumer.getKeyPair()).thenReturn(keyPair);
when(pki.getPemEncoded(keyPair.getPrivateKey()))
.thenReturn("privateKey".getBytes());
when(pki.getPemEncoded(keyPair.getPublicKey()))
.thenReturn("publicKey".getBytes());
// FINALLY test this badboy
Exporter e = new Exporter(ctc, me, ce, cte, re, ece, ecsa, pe, psa,
pce, ec, ee, pki, config, exportRules, pprov, dvc, dve, cdnc, cdne);