title: Junit Testing with void method
body: <p>I have to create a JUnit test for the following class, but I cannot do the test for the method <code>deposit</code>.</p>
  
  <pre><code>public class Account {
      private int balance;
      private float Interest_Rate =10;
  
      public Account() {
          this.balance = 0;
      }
      public void deposit(int amount) {       
          balance = balance+amount;
      }
  }
  
  @Test
  public void testdeposit() {
      Account i = new Account();
      assertEquals("Result",75,i.deposit(25));
  }
  </code></pre>