ConnectionAccounting { public boolean isUnderMinimum() { return count.get() < minimum; } ConnectionAccounting(int min, int max); int getMinimum(); int getMaximum(); int getCount(); boolean tryPrefill(); void cancelTryPrefill(); boolean tryCreate(); void cancelTryCreate(); void create(); boolean tryDestroy(); void cancelTryDestroy(); boolean destroyAndIsUnderMinimum(int destroyCount); boolean isUnderMinimum(); boolean isOverMinimum();  }
@Test public void isUnderMinTrueWhenUnderMin() { ConnectionAccounting a = new ConnectionAccounting(1, 2); assertThat(a.isUnderMinimum()).isTrue(); }