    @Test
    public void shouldNotClearChangesWithOldestVersion() {

        //Arrange
        RouterMeta routerMeta = new RouterMeta();
        routerMeta.groupId = "group-local";
        routerMeta.localIP = "127.0.0.1";
        routerMeta.version = "1";
        String versionNewest = "2";
        routerMeta.envId = "1";
        routerMeta.zoneId = null;

        Environment env = new Environment();
        env.setId(Long.valueOf(routerMeta.envId));
        Target target = new Target();
        target.setId(999L);
        target.setLastModifiedAt(new Date());
        changesService.register(env, target, versionNewest);

        //Action
        routersService.put(routerMeta);

        //Assert
        boolean hasChanges = changesService.hasByEnvironmentId(Long.valueOf(routerMeta.envId));
        Assert.assertTrue(hasChanges);
    }