### Question:
AbstractBuilder { protected synchronized String getRequestId(DelegateExecution execution) { if (StringUtils.isBlank(requestId)) { requestId = (String) execution.getVariable("msoRequestId"); if (StringUtils.isBlank(requestId)) { requestId = UUID.randomUUID().toString(); } } return requestId; }   static final String OPERATION_TYPE; static final String RESOURCE_TYPE; }### Answer:
@Test public void getRequestIdBlankNotOnExecutionTest() { abstractBuilder.getRequestId(delegateExecution); }
@Test public void getRequestIdBlankOnExecutionTest() { String expected = "requestId"; delegateExecution.setVariable("msoRequestId", expected); assertEquals(expected, abstractBuilder.getRequestId(delegateExecution)); }
@Test public void getRequestIdTest() { String expected = "requestId"; abstractBuilder.requestId = expected; assertEquals(expected, abstractBuilder.getRequestId(delegateExecution)); }