@Test
public void test_getOnboarderdServiceAccount_success() {

	UserDetails userDetails = getMockUser(true);
	String token = userDetails.getClientToken();
	String svcAccName = "testacc03";
	OnboardedServiceAccountDetails onboardedServiceAccountDetails = new OnboardedServiceAccountDetails();
	onboardedServiceAccountDetails.setLastVaultRotation("2018-05-24T17:14:38.677370855Z");
	onboardedServiceAccountDetails.setName(svcAccName+"@aaa.bbb.ccc.com");
	onboardedServiceAccountDetails.setPasswordLastSet("2018-05-24T17:14:38.6038495Z");
	onboardedServiceAccountDetails.setTtl(100L);
    Map<String,Object> requestMap = new HashMap<>();
    requestMap.put("service_account_name", svcAccName+"@aaa.bbb.ccc.com");
    requestMap.put("last_vault_rotation", "2018-05-24T17:14:38.677370855Z");
    requestMap.put("password_last_set", "2018-05-24T17:14:38.6038495Z");
    requestMap.put("ttl", new Integer("100"));
	// getOnboarderdServiceAccountDetails
	Response svcAccDtlsResponse = getMockResponse(HttpStatus.OK, true, getJSON(requestMap));
	when(reqProcessor.process("/ad/serviceaccount/details","{\"role_name\":\""+svcAccName+"\"}",token)).thenReturn(svcAccDtlsResponse);
	// System under test
	String onboardedServiceAccountDetailsJSON  = getJSON(onboardedServiceAccountDetails);
	when(JSONUtil.getJSON(Mockito.any(OnboardedServiceAccountDetails.class))).thenReturn(onboardedServiceAccountDetailsJSON);
	ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(onboardedServiceAccountDetailsJSON);
	ResponseEntity<String> responseEntity = serviceAccountsService.getOnboarderdServiceAccount(token, svcAccName, userDetails);
	assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
	assertEquals(responseEntityExpected, responseEntity);
}