title: Using jRAPL in JUnit unit test
body: <p>There are some way of using jRAPL or similar tool for measure energy consumption inside of unit tests?</p>
  
  <p>Something like:</p>
  
  <pre><code>public class FooTest{
      @Before
      public void startUp(){
          double beginning = EnergyCheck.statCheck();
      }
  
      @After
      public void tearDown(){
          double end = EnergyCheck.statCheck();
          System.out.println(end - beginning);
      }
  
     @Test
     public void FooTest(){
          //TODO
     }
  }
  </code></pre>
  
  <p>What configuration I should do to be able to use jRAPL this way, using Eclipse IDE?</p>
  
  <p>Best regards.</p>