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