### Question:
Results { public static final Result success() { return success(null); }  static final Result success(); static final Result success(String message); static final Result success(String message, Object entity); static final Failed fail(); static final Failed fail(String message); static final Failed fail(String message, Throwable e); static final Failed fail(String message, Throwable e, Object entity); static final NavigationResult navigateTo(Class<? extends UICommand> next); static final NavigationResult navigateTo(Class<? extends UICommand>[] next); @SuppressWarnings("unchecked") static final NavigationResult navigateTo(Class<? extends UICommand> next,
            Class<? extends UICommand>... additional); static NavigationResultBuilder navigationBuilder(); static CompositeResult aggregate(Iterable<Result> results); static CompositeResult aggregate(Iterable<Result> results, Object entity);  }### Answer:
@Test public void testSuccess() { Result success = Results.success(); assertThat(success.getMessage(), nullValue()); assertThat(success.getEntity().isPresent(), is(false)); }
@Test public void testSuccessString() { Result success = Results.success("Foo"); assertThat(success.getMessage(), equalTo("Foo")); assertThat(success.getEntity().isPresent(), is(false)); }
@Test public void testSuccessStringEntity() { Object anything = new Object(); Result success = Results.success("Foo", anything); assertThat(success.getMessage(), equalTo("Foo")); assertThat(success.getEntity().isPresent(), is(true)); assertSame(anything, success.getEntity().get()); }