+ fun unsetCurrentSone() {
+ whenever(webInterface.getCurrentSoneCreatingSession(eq(toadletContext))).thenReturn(null)
+ whenever(webInterface.getCurrentSone(eq(toadletContext), anyBoolean())).thenReturn(null)
+ whenever(webInterface.getCurrentSoneWithoutCreatingSession(eq(toadletContext))).thenReturn(null)
+ }
+
+ fun addOwnIdentity(ownIdentity: OwnIdentity) {
+ ownIdentities += ownIdentity
+ }
+