@Test public void testMinimize() throws Exception { command.samplePaths = Lists.newArrayList("target/users.csv"); command.recordName = "User"; command.minimize = true; int rc = command.run(); Assert.assertEquals("Should return success code", 0, rc); verify(console).info(argThat(TestUtil.matchesMinimizedSchema(schema))); verifyNoMoreInteractions(console); }