@Test
public void testGetVirtualSize() throws Exception{

    long virtualSize = 2000;
    long actualSize = 1000;
    File mockFile = Mockito.mock(File.class);
    Mockito.when(mockFile.length()).thenReturn(actualSize);
    Mockito.doReturn(virtualSize).when(processor).getTemplateVirtualSize((File) Mockito.any());
    Assert.assertEquals(virtualSize, processor.getVirtualSize(mockFile));
    Mockito.verify(mockFile,Mockito.times(0)).length();
}