### Question:
ServerUtils { public static boolean isCodeModelValid(@NonNull CodeModel codeModel) { return (codeModel.type != null && codeModel.inReplyTo != null && codeModel.inReplyTo.equals("codemodel") && codeModel.type.equals("reply") && codeModel.configurations != null && isCodeModelConfigurationsValid(codeModel.configurations)); }  static boolean isHelloResultValid(HelloResult helloResult); static boolean isHandshakeResultValid(@NonNull HandshakeResult handshakeResult); static boolean isConfigureResultValid(ConfigureResult configureResult); static boolean isComputedResultValid(@NonNull ComputeResult computeResult); static boolean isCodeModelValid(@NonNull CodeModel codeModel); static boolean isCmakeInputsResultValid(@NonNull CmakeInputsResult cmakeInputsResult);  }### Answer:
@Test public void testValidCodeModel() { assertThat( ServerUtils.isCodeModelValid( getCodeModelFromString(getValidCodeModelResponseString()))) .isTrue(); }
@Test public void testValidCodeModelTargetMissingArtifact() { assertThat( ServerUtils.isCodeModelValid( getCodeModelFromString( getValidCodeModelTargetMissingArtifactResponseString()))) .isTrue(); }
@Test public void testValidCodeModelTargetMissingFileGroup() { assertThat( ServerUtils.isCodeModelValid( getCodeModelFromString( getValidCodeModelTargetMissingFileGroupResponseString()))) .isTrue(); }
@Test public void testInvalidCodeModel() { assertThat( ServerUtils.isCodeModelValid( getCodeModelFromString(getInvalidCodeModelResponseString()))) .isFalse(); }