DefaultSyncConfig { @NotNull public User user() { return user; }  @NotNull String getName(); @NotNull DefaultSyncConfig setName(@NotNull String name); @NotNull User user(); @NotNull Group group();  }
@Test public void testUserConfig() { DefaultSyncConfig.User userConfig = config.user(); assertNotNull(userConfig); assertAuthorizableConfig(userConfig); assertEquals(0, userConfig.getMembershipExpirationTime()); assertSame(userConfig, userConfig.setMembershipExpirationTime(1)); assertEquals(1, userConfig.getMembershipExpirationTime()); assertEquals(Long.MIN_VALUE, userConfig.setMembershipExpirationTime(Long.MIN_VALUE).getMembershipExpirationTime()); assertEquals(0, userConfig.getMembershipNestingDepth()); assertSame(userConfig, userConfig.setMembershipNestingDepth(5)); assertEquals(5, userConfig.getMembershipNestingDepth()); assertEquals(0, userConfig.setMembershipExpirationTime(0).getMembershipExpirationTime()); }