In this work, we have extensively investigated the computation of finite temperature mechanical properties of ZIF-4 in the crystal and glass phases. We have compared different molecular dynamics schemes and computational methods on a series of glass models. This is important because such mechanical properties are difficult to access experimentally, especially for the glasses.