import static org.junit.Assert.*;

import org.junit.Test;

public class ReduceFractionTest {

	@Test
	public void alreadyInLowestTerms() throws Exception {
		assertEquals(new Fraction(3, 4), new Fraction(3, 4));
	}

	@Test
	public void reduceToNotWholeNumber() throws Exception {
		assertEquals(new Fraction(3, 4), new Fraction(6, 8));
	}
	
	@Test
	public void reduceWholeNumber() throws Exception {
		assertEquals(new Fraction(6), new Fraction(24, 4));
	}
}

import static org.junit.Assert.*;

import org.junit.Test;

public class ReduceFractionTest {

	@Test
	public void alreadyInLowestTerms() throws Exception {
		assertEquals(new Fraction(3, 4), new Fraction(3, 4));
	}

	@Test
	public void reduceToNotWholeNumber() throws Exception {
		assertEquals(new Fraction(3, 4), new Fraction(6, 8));
	}
	
	@Test
	public void reduceWholeNumber() throws Exception {
		assertEquals(new Fraction(6), new Fraction(24, 4));
	}	
	
	@Test
	public void reduceToZero() throws Exception {
		assertEquals(new Fraction(0), new Fraction(0, 4));
	}
}

reduce to zero works