public void testGetState() throws IOException, InstanceNotFoundException {
System.out.println("getState");
ScanManager instance = new ScanManager();
ScanState expResult = ScanState.STOPPED;
ScanState result = instance.getState();
assertEquals(expResult, result);
instance.start();
final ScanState afterStart = instance.getState();
assertContained(EnumSet.of(RUNNING,SCHEDULED,COMPLETED),afterStart);
instance.stop();
assertEquals(STOPPED,instance.getState());
instance.schedule(1000000L,1000000L);
assertEquals(SCHEDULED,instance.getState());