Replaced inner class by lambda in ObserverTest#testObserver().