GrowingObjectOrientedSoftware一书在jMock中给出了几个示例,其中状态是显式的,而不是通过API公开它。我真的喜欢这个主意。有没有办法在Mockito中做到这一点?这是书中的一个例子publicclassSniperLauncherTest{privatefinalStatesauctionState=context.states("auctionstate").startsAs("notjoined");@TestpublicvoidaddsNewSniperToCollectorAndThenJoinsAuction(){finalStringitem