### Question:
SystemMetricsCollector { public abstract boolean getSnapshot(T snapshot);  abstract boolean getSnapshot(T snapshot); abstract T createMetrics();  }### Answer:
@Test public void testNullSnapshot() throws Exception { mExpectedException.expect(IllegalArgumentException.class); T instance = getClazz().newInstance(); instance.getSnapshot(null); }