@Override
    public ModuleState build() {
        ModuleState moduleState = new ModuleState(DistroConstants.DISTRO_MODULE);
        moduleState.newState(DistroConstants.DATA_SYNC_DELAY_MILLISECONDS_STATE,
                EnvUtil.getProperty(DistroConstants.DATA_SYNC_DELAY_MILLISECONDS, Long.class,
                        DistroConstants.DEFAULT_DATA_SYNC_DELAY_MILLISECONDS));
        moduleState.newState(DistroConstants.DATA_SYNC_TIMEOUT_MILLISECONDS_STATE,
                EnvUtil.getProperty(DistroConstants.DATA_SYNC_TIMEOUT_MILLISECONDS, Long.class,
                        DistroConstants.DEFAULT_DATA_SYNC_TIMEOUT_MILLISECONDS));
        moduleState.newState(DistroConstants.DATA_SYNC_RETRY_DELAY_MILLISECONDS_STATE,
                EnvUtil.getProperty(DistroConstants.DATA_SYNC_RETRY_DELAY_MILLISECONDS, Long.class,
                        DistroConstants.DEFAULT_DATA_SYNC_RETRY_DELAY_MILLISECONDS));
        moduleState.newState(DistroConstants.DATA_VERIFY_INTERVAL_MILLISECONDS_STATE,
                EnvUtil.getProperty(DistroConstants.DATA_VERIFY_INTERVAL_MILLISECONDS, Long.class,
                        DistroConstants.DEFAULT_DATA_VERIFY_INTERVAL_MILLISECONDS));
        moduleState.newState(DistroConstants.DATA_VERIFY_TIMEOUT_MILLISECONDS_STATE,
                EnvUtil.getProperty(DistroConstants.DATA_VERIFY_TIMEOUT_MILLISECONDS, Long.class,
                        DistroConstants.DEFAULT_DATA_VERIFY_TIMEOUT_MILLISECONDS));
        moduleState.newState(DistroConstants.DATA_LOAD_RETRY_DELAY_MILLISECONDS_STATE,
                EnvUtil.getProperty(DistroConstants.DATA_LOAD_RETRY_DELAY_MILLISECONDS, Long.class,
                        DistroConstants.DEFAULT_DATA_LOAD_RETRY_DELAY_MILLISECONDS));
        moduleState.newState(DistroConstants.DATA_LOAD_TIMEOUT_MILLISECONDS_STATE,
                EnvUtil.getProperty(DistroConstants.DATA_LOAD_TIMEOUT_MILLISECONDS, Long.class,
                        DistroConstants.DEFAULT_DATA_LOAD_TIMEOUT_MILLISECONDS));
        return moduleState;
    }
@Test
    void testBuild() {
        ModuleState actual = new DistroModuleStateBuilder().build();
        Map<String, Object> states = actual.getStates();
        assertEquals(DistroConstants.DISTRO_MODULE, actual.getModuleName());
        assertEquals(DistroConstants.DEFAULT_DATA_SYNC_DELAY_MILLISECONDS, states.get(DistroConstants.DATA_SYNC_DELAY_MILLISECONDS_STATE));
        assertEquals(DistroConstants.DEFAULT_DATA_SYNC_TIMEOUT_MILLISECONDS,
                states.get(DistroConstants.DATA_SYNC_TIMEOUT_MILLISECONDS_STATE));
        assertEquals(DistroConstants.DEFAULT_DATA_SYNC_RETRY_DELAY_MILLISECONDS,
                states.get(DistroConstants.DATA_SYNC_RETRY_DELAY_MILLISECONDS_STATE));
        assertEquals(DistroConstants.DEFAULT_DATA_VERIFY_INTERVAL_MILLISECONDS,
                states.get(DistroConstants.DATA_VERIFY_INTERVAL_MILLISECONDS_STATE));
        assertEquals(DistroConstants.DEFAULT_DATA_VERIFY_TIMEOUT_MILLISECONDS,
                states.get(DistroConstants.DATA_VERIFY_TIMEOUT_MILLISECONDS_STATE));
        assertEquals(DistroConstants.DEFAULT_DATA_LOAD_RETRY_DELAY_MILLISECONDS,
                states.get(DistroConstants.DATA_LOAD_RETRY_DELAY_MILLISECONDS_STATE));
        assertEquals(DistroConstants.DEFAULT_DATA_LOAD_TIMEOUT_MILLISECONDS,
                states.get(DistroConstants.DATA_LOAD_TIMEOUT_MILLISECONDS_STATE));
    }