@Test public void testGetProduct() { final FtpProduct product = mock(FtpProduct.class); mockStatic(AuthHelper.class); when(AuthHelper.fromCurrentSubject()).thenReturn(product); assertThat(provider.getProduct()).isEqualTo(product); }
@Override public FtpProduct getProduct() { return AuthHelper.fromCurrentSubject(); }
J4CclFtpProductProvider implements FtpProductProvider { @Override public FtpProduct getProduct() { return AuthHelper.fromCurrentSubject(); } }
J4CclFtpProductProvider implements FtpProductProvider { @Override public FtpProduct getProduct() { return AuthHelper.fromCurrentSubject(); }  }
J4CclFtpProductProvider implements FtpProductProvider { @Override public FtpProduct getProduct() { return AuthHelper.fromCurrentSubject(); }  @Override FtpProduct getProduct(); }
J4CclFtpProductProvider implements FtpProductProvider { @Override public FtpProduct getProduct() { return AuthHelper.fromCurrentSubject(); }  @Override FtpProduct getProduct();  }