diff --git a/lib/IdPAccountManager/TestAccount.pm b/lib/IdPAccountManager/TestAccount.pm
index 3f6c9c8438496a6c0578c16ccd55aacb4472ebcc..d9c8b2a5a09f085916e0c59852910c8030ceef95 100644
--- a/lib/IdPAccountManager/TestAccount.pm
+++ b/lib/IdPAccountManager/TestAccount.pm
@@ -183,4 +183,9 @@ sub comment {
     return $comment{$self->profile()};
 }
 
+sub associatedSP {
+    my ($self) = @_;
+    return $self->{sp_entityid};
+}
+
 1;