HostInfoCmdWin implements ICommand { @Override public void execute() throws TAException { try { getOsName(); getOsVersion(); getBiosAndVersion(); getVmm(); if (vmmEnabled) { getVmmVersion(); } else { context.setVmmVersion("NA"); } getProcessorInfo(); getHostUUID(); } catch (TAException | IOException ex) { log.debug("Error while getting OS details", ex); throw new TAException(ErrorCode.ERROR, "Error while getting OS details.", ex); } } HostInfoCmdWin(TADataContext context); @Override void execute(); void getHostUUID();  }
@Test public void testExecute() throws Exception { System.out.println("execute"); TADataContext context = new TADataContext(); HostInfoCmdWin instance = new HostInfoCmdWin(context); instance.execute(); }