Subscription mockSub = mock(io.nats.client.Subscription.class); when(conn.getHbSubscription()).thenReturn(mockSub); doThrow(new IllegalStateException(Nats.
確定! 回上一頁