### Question:
LambdaSegmentContextResolver implements SegmentContextResolver { @Override @Nullable public SegmentContext resolve() { String lambdaTaskRootValue = LambdaSegmentContextResolver.getLambdaTaskRoot(); if (StringValidator.isNotNullOrBlank(lambdaTaskRootValue)) { logger.debug(LAMBDA_TASK_ROOT_KEY + " is set. Lambda context detected."); return new LambdaSegmentContext(); } return null; }  @Override @Nullable SegmentContext resolve();  }### Answer:
@Test public void testLambdaTaskRootSetResolvesLambdaContext() { Assert.assertNotNull(mockResolver("/var/test").resolve()); }
@Test public void testBlankLambdaTaskRootDoesNotResolveLambdaContext() { Assert.assertNull(mockResolver(" ").resolve()); }
@Test public void testLambdaTaskRootNotSetDoesNotResolveLambdaContext() { Assert.assertNull(mockResolver(null).resolve()); }