@Test
public void testGetVariable() throws IOException {

    final Variable mockVariable = mock(Variable.class);
    final String variableName = "blablupp";
    when(netcdfFile.findVariable(variableName)).thenReturn(mockVariable);
    final Variable variable = NcTools.getVariable(netcdfFile, variableName);
    assertNotNull(variable);
    verify(netcdfFile, times(1)).findVariable(variableName);
    verifyNoMoreInteractions(netcdfFile);
}