### Question:
TrimService { public void resetTrim() { resetTrim(0); } @Inject  TrimService(DatabaseManager databaseManager,
                       DerivedTablesRegistry derivedDbTablesRegistry,
                       GlobalSync globalSync,
                       TimeService timeService,
                       Event<TrimData> trimEvent,
                       Event<TrimConfig> trimConfigEvent,
                       TrimDao trimDao,
                       @Property(value = "apl.maxRollback", defaultValue = "720") int maxRollback
    ); int getLastTrimHeight(); void init(int height, int shardInitialBlockHeight); void trimDerivedTables(int height, boolean async); void doTrimDerivedTablesOnBlockchainHeight(int blockchainHeight, boolean async); void resetTrim(); void resetTrim(int height); int doTrimDerivedTablesOnHeightLocked(int height, boolean isSharding); void updateTrimConfig(boolean enableTrim, boolean clearQueue); boolean isTrimming(); void waitTrimming();  }### Answer:
@Test void testResetTrim() { trimService.resetTrim(); verify(trimDao).clear(); }
@Test void testResetTrimToHeight() { trimService.resetTrim(2000); verify(trimDao).clear(); verify(trimDao).save(new TrimEntry(null, 2000, true)); }