@Test public void translateForRead_nullResourceModel() { assertThatThrownBy(() -> Translator.translateFromReadResponse(null)) .hasNoCause() .hasMessageStartingWith("awsResponse is marked") .isExactlyInstanceOf(NullPointerException.class); }
static ResourceModel translateFromReadResponse(@NonNull final DescribeTypeResponse awsResponse) { return ResourceModel.builder() .arn(awsResponse.arn()) .versionId(awsResponse.defaultVersionId()) .typeName(awsResponse.typeName()) .build(); }
Translator { static ResourceModel translateFromReadResponse(@NonNull final DescribeTypeResponse awsResponse) { return ResourceModel.builder() .arn(awsResponse.arn()) .versionId(awsResponse.defaultVersionId()) .typeName(awsResponse.typeName()) .build(); } }
Translator { static ResourceModel translateFromReadResponse(@NonNull final DescribeTypeResponse awsResponse) { return ResourceModel.builder() .arn(awsResponse.arn()) .versionId(awsResponse.defaultVersionId()) .typeName(awsResponse.typeName()) .build(); }  }
Translator { static ResourceModel translateFromReadResponse(@NonNull final DescribeTypeResponse awsResponse) { return ResourceModel.builder() .arn(awsResponse.arn()) .versionId(awsResponse.defaultVersionId()) .typeName(awsResponse.typeName()) .build(); }   }
Translator { static ResourceModel translateFromReadResponse(@NonNull final DescribeTypeResponse awsResponse) { return ResourceModel.builder() .arn(awsResponse.arn()) .versionId(awsResponse.defaultVersionId()) .typeName(awsResponse.typeName()) .build(); }    }