.username("admin")
.publicKey(getResourceAsString("keys/test.pub"))
.privateKey(getResourceAsString("keys/test"))
.createAdminAccess();
DelegateExecution execution = mock(DelegateExecution.class);
Pool pool = mock(Pool.class);
when(pool.getProvider()).thenReturn(provider);
when(pool.getAdminAccess()).thenReturn(adminAccess);
when(execution.getProcessBusinessKey()).thenReturn(BUSINESS_KEY);
when(execution.getVariable(CoreProcessVariables.POOL)).thenReturn(pool);
activity.execute(execution);
assertKeyPairWasImportedAsExpected();
/* the second call should just re-import the key */