### Question:
WashingMachine { public synchronized void endOfWashing() { washingMachineState = WashingMachineState.ENABLED; LOGGER.info("{}: Washing completed.", Thread.currentThread().getId()); } WashingMachine();  WashingMachine(DelayProvider delayProvider); WashingMachineState getWashingMachineState(); void wash(); synchronized void endOfWashing();  }### Answer:
@Test public void endOfWashing() { WashingMachine washingMachine = new WashingMachine(); washingMachine.wash(); assertEquals(WashingMachineState.ENABLED, washingMachine.getWashingMachineState()); }
@Test void endOfWashing() { var washingMachine = new WashingMachine(); washingMachine.wash(); assertEquals(WashingMachineState.ENABLED, washingMachine.getWashingMachineState()); }