jk
08/16/2017, 3:13 PMbox.addToGrid will return null because you haven't added any behaviour for it. e.g. when(box.addToGrid()).thenReturn(something)
but what is the test actually testing? if you are making an assertion on what box.addToGrid returns, why are you using a mock?