final testSSHExecInterface test = new testSSHExecInterface();
state.sshConnectionInfo.authenticationType = SSHTaskBuilder.AuthenticationType.privateKey;
state.sshConnectionInfo.privateKeyResourcePath = "/keys/key1.pem";
state.sshConnectionInfo.privateKeyResourceData = new ByteArrayInputStream("data".getBytes());
state.sshConnectionInfo.privateKeyResourceDataStorageException = new StorageException("blah",
StorageException.Event.READ, PathUtil.asPath("keys/key1.pem"));
state.sshConnectionInfo.username = "usernameValue";
try {
runBuildSSH(state, test, testLogger);