@Test
public void testPauseAndShutdownCommands() {
final Worker worker = new WorkerImpl(config, set(testQueue),
new MapBasedJobFactory(map(entry("TestAction", TestAction.class))));
final Admin admin = new AdminImpl(config);
admin.setWorker(worker);
final Thread workerThread = new Thread(worker);
workerThread.start();
final Thread adminThread = new Thread(admin);
adminThread.start();