void () { try { WslDistributionManagerImpl.parseWslVerboseListOutput(List.of( " NAME STATE VERSION", "", "* Ubuntu-20.04 Has to be stopped 2", " Ubuntu-18.04 Almost stopped 1 ")); fail(); } catch (IllegalStateException e) { assertTrue(e.getMessage().contains("malformed distribution name")); } try { WslDistributionManagerImpl.parseWslVerboseListOutput(List.of( " NAME STATE VERSION", "*")); fail(); } catch (IllegalStateException e) { assertTrue(e.getMessage().contains("malformed distribution name")); } }