### Question:
SecurityProfile3 implements UserMessage { @Override public CompletableFuture<UserMessageResult> perform(StateManager stateManager) { stateManager.getStation().switchToSecurityProfile3(url); return CompletableFuture.completedFuture(UserMessageResult.SUCCESSFUL); }  @Override CompletableFuture<UserMessageResult> perform(StateManager stateManager);  }### Answer:
@Test void shouldThrowExceptionOnIllegalState() { assertThrows(IllegalArgumentException.class, () -> securityProfile3.perform(stateManagerMock)); }