### Question:
HighStateAllRunner extends BaseSaltJobRunner { @Override public String submit(SaltConnector saltConnector) { return SaltStates.highstate(saltConnector); } HighStateAllRunner(Set<String> target, Set<Node> allNode); @Override String submit(SaltConnector saltConnector); @Override StateType stateType(); @Override String toString();  }### Answer:
@Test public void submit() { targets = new HashSet<>(); targets.add("10.0.0.1"); targets.add("10.0.0.2"); targets.add("10.0.0.3"); allNode = new HashSet<>(); allNode.add(new Node("10.0.0.1", "5.5.5.1", "10-0-0-1.example.com", "hg")); allNode.add(new Node("10.0.0.2", "5.5.5.2", "10-0-0-2.example.com", "hg")); allNode.add(new Node("10.0.0.3", "5.5.5.3", "10-0-0-3.example.com", "hg")); HighStateAllRunner highStateAllRunner = new HighStateAllRunner(targets, allNode); SaltConnector saltConnector = Mockito.mock(SaltConnector.class); PowerMockito.mockStatic(SaltStates.class); String jobId = "1"; PowerMockito.when(SaltStates.highstate(any())).thenReturn(jobId); String jid = highStateAllRunner.submit(saltConnector); assertEquals(jobId, jid); PowerMockito.verifyStatic(SaltStates.class); SaltStates.highstate(eq(saltConnector)); }