### Question:
JooqUnitOfWorkService implements UnitOfWorkService { @Override public UnitOfWork getCurrent() { UnitOfWork current = CURRENT_UNIT_OF_WORK.get(); if (current == null) { throw new IllegalStateException("No current unit of work found"); } return current; } JooqUnitOfWorkService(ManagedDataSource managedDataSource, JooqUnitOfWorkFactory jooqUnitOfWorkFactory); @Override UnitOfWork getCurrent(); @Override UnitOfWork start(); @Override void commit(); @Override void abort();  }### Answer:
@Test(expectedExceptions = IllegalStateException.class) public void testGetCurrent() throws Exception { sut.getCurrent(); }