public static UserVo from(User user) {
        User.UserStatus statusCopy =
            JsonUtils.deepCopy(ObjectUtils.defaultIfNull(user.getStatus(), new User.UserStatus()));
        statusCopy.setLoginHistories(List.of());
        statusCopy.setLastLoginAt(null);

        User.UserSpec userSpecCopy = JsonUtils.deepCopy(user.getSpec());
        userSpecCopy.setPassword("[PROTECTED]");
        return UserVo.builder()
            .metadata(user.getMetadata())
            .spec(userSpecCopy)
            .status(statusCopy)
            .build();
    }
@Test
    void fromWhenStatusIsNull() {
        User user = new User();
        user.setMetadata(new Metadata());
        user.getMetadata().setName("fake-user");
        user.setSpec(new User.UserSpec());
        UserVo userVo = UserVo.from(user);

        assertThat(userVo).isNotNull();
    }