whenever(webInterface.core).thenReturn(core)
whenever(webInterface.formPassword).then { formPassword }
whenever(webInterface.getNotifications(currentSone)).thenAnswer { notifications.values }
whenever(webInterface.getNotification(ArgumentMatchers.anyString())).then { notifications[it[0]].asOptional() }
whenever(webInterface.core).thenReturn(core)
whenever(webInterface.formPassword).then { formPassword }
whenever(webInterface.getNotifications(currentSone)).thenAnswer { notifications.values }
whenever(webInterface.getNotification(ArgumentMatchers.anyString())).then { notifications[it[0]].asOptional() }