Take a look at TestClass -> initPanelSizeBinding(). The problem is then() is being executed even though panelProperty.get()
TestClass
initPanelSizeBinding()
then()
panelProperty.get()