### Question:
SubnetSelectionResult { public boolean hasError() { return StringUtils.isNotEmpty(errorMessage); } SubnetSelectionResult(List<CloudSubnet> result);  SubnetSelectionResult(String errorMessage); boolean hasError(); boolean hasResult(); List<CloudSubnet> getResult(); String getErrorMessage(); @Override String toString();  }### Answer:
@Test public void testWhenCtorWithListWithElementThenHasErrorIsFalse() { SubnetSelectionResult subnetSelectionResult = new SubnetSelectionResult(List.of(new CloudSubnet())); assertFalse(subnetSelectionResult.hasError()); }