### Question:
GovernanceEngineRESTServices { public SoftwareServerCapabilityResponse getSoftwareServerByGUID(String serverName, String userId, String guid) { String methodName = "getSoftwareServerByGUID"; SoftwareServerCapabilityResponse response = new SoftwareServerCapabilityResponse(); try { GovernedAssetHandler governedAssetHandler = instanceHandler.getGovernedAssetHandler(userId, serverName, methodName); response.setServerCapability(governedAssetHandler.getSoftwareServerCapabilityByGUID(userId, guid)); } catch (InvalidParameterException e) { restExceptionHandler.captureInvalidParameterException(response, e); } catch (UserNotAuthorizedException e) { restExceptionHandler.captureUserNotAuthorizedException(response, e); } catch (PropertyServerException e) { restExceptionHandler.capturePropertyServerException(response, e); } return response; }  GovernedAssetListResponse getGovernedAssets(String serverName, String userId, List<String> entityTypes, Integer offset, Integer pageSize); GovernedAssetResponse getGovernedAsset(String serverName, String userId, String assetGuid); StringResponse createSoftwareServer(String serverName, String userId, SoftwareServerCapabilityRequestBody requestBody); SoftwareServerCapabilityResponse getSoftwareServerByGUID(String serverName, String userId, String guid);  }### Answer:
@Test public void testGetSoftwareServerCapabilityByGUID() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException { when(instanceHandler.getGovernedAssetHandler(USER, SERVER_NAME, "getSoftwareServerByGUID")) .thenReturn(governedAssetHandler); SoftwareServerCapability response = mockSoftwareServerCapability(); when(governedAssetHandler .getSoftwareServerCapabilityByGUID(USER, SOFTWARE_SERVER_CAPABILITY_GUID)) .thenReturn(response); SoftwareServerCapabilityResponse softwareServerByGUID = governanceEngineRESTServices.getSoftwareServerByGUID(SERVER_NAME, USER, SOFTWARE_SERVER_CAPABILITY_GUID); assertEquals(response, softwareServerByGUID.getServerCapability()); }