System.in.read();
}
@Test
public void acceptorTest() throws IOException{
final FIXAcceptor fix = FIXAcceptor.Builder("TARGET")
.withDebugStatus(true)
.withMsgStoreFactory(new DiskQueueFactory("data")).build();
fix.startListening(5555);
Executors.newScheduledThreadPool(2).schedule(new Runnable() {
@Override
public void run() {
fix.logOff("SENDER","TIMETOGO");
}
}, 30L, TimeUnit.SECONDS);
System.in.read();
}