@Test public void shouldSetTestMockServerFieldWithSameValueFromGetter() { assertThat(mockServerClient, sameInstance(mockServerRule.getClient())); }
public MockServerClient getClient() { return clientAndServer; }
MockServerRule implements TestRule { public MockServerClient getClient() { return clientAndServer; } }
MockServerRule implements TestRule { public MockServerClient getClient() { return clientAndServer; } MockServerRule(Object target);  MockServerRule(Object target, boolean perTestSuite);  MockServerRule(Object target, Integer... ports);  MockServerRule(Object target, boolean perTestSuite, Integer... ports); }
MockServerRule implements TestRule { public MockServerClient getClient() { return clientAndServer; } MockServerRule(Object target);  MockServerRule(Object target, boolean perTestSuite);  MockServerRule(Object target, Integer... ports);  MockServerRule(Object target, boolean perTestSuite, Integer... ports); Integer getPort(); Integer[] getPorts(); Statement apply(Statement base, Description description); MockServerClient getClient(); }
MockServerRule implements TestRule { public MockServerClient getClient() { return clientAndServer; } MockServerRule(Object target);  MockServerRule(Object target, boolean perTestSuite);  MockServerRule(Object target, Integer... ports);  MockServerRule(Object target, boolean perTestSuite, Integer... ports); Integer getPort(); Integer[] getPorts(); Statement apply(Statement base, Description description); MockServerClient getClient();  }