viewModel.isClearEnabledOnceAndStream()
.test()
.assertValue(false)
.assertNotTerminated();
}
<BUG>@Ignore(("This will require Scheduler overriding"))</BUG>
@Test
public void clear_isEnabled_whenSearchWithNonEmptyQuery() {
<BUG>new ArrangeBuilder().withSuccessfulSearchResultStream()
.bind()

.subscribed();
viewModel.search(QUERY);
</BUG>
viewModel.isClearEnabledOnceAndStream()

viewModel.isClearEnabledOnceAndStream()
.test()
.assertValue(false)
.assertNotTerminated();
}
@Test
public void clear_isEnabled_whenSearchWithNonEmptyQuery() {
new ArrangeBuilder().withSuccessfulSearchResultStream()
.act()
.bind();
viewModel.search(DUMMY_QUERY);
viewModel.isClearEnabledOnceAndStream()
