### Question:
Marble implements Entity { public MarbleType getType() { return type; } Marble(MarbleType type); MarbleType getType(); boolean isCompatible(Marble other);  }### Answer:
@Test public void createPinkBall() { Marble marble = new Marble(MarbleType.PINK); assertThat(marble.getType()).isEqualTo(MarbleType.PINK); }
@Test public void createBlueBall() { Marble marble = new Marble(MarbleType.BLUE); assertThat(marble.getType()).isEqualTo(MarbleType.BLUE); }
@Test public void createGreenBall() { Marble marble = new Marble(MarbleType.GREEN); assertThat(marble.getType()).isEqualTo(MarbleType.GREEN); }
@Test public void createYellowBall() { Marble marble = new Marble(MarbleType.YELLOW); assertThat(marble.getType()).isEqualTo(MarbleType.YELLOW); }
@Test public void createJoker() { Marble marble = new Marble(MarbleType.JOKER); assertThat(marble.getType()).isEqualTo(MarbleType.JOKER); }
@Test public void createBallNull() { Marble marble = new Marble((MarbleType) null); assertThat(marble.getType()).isEqualTo(null); }