### Question:
MusicTypeStore { public MusicType findById(int id) { MusicType result = null; try (Connection connect = CON.getConnect(); PreparedStatement st = connect.prepareStatement(QUERIES.getProperty("findTypeById"))) { st.setInt(1, id); try (ResultSet rstSet = st.executeQuery()) { if (rstSet.next()) { result = new MusicType(rstSet.getString("music_type")); result.setId(rstSet.getInt("id")); } } } catch (SQLException e) { LOG.error(e.getMessage(), e); } return result; }  int add(MusicType type); int findTypeId(MusicType type); List<MusicType> findAll(); MusicType findById(int id); boolean delete(int id); boolean update(int id, MusicType type);  }### Answer:
@Test public void findById() { this.testStore.add(new MusicType("test6")); int id = this.findIdByType(new MusicType("test6")); assertThat(this.testStore.findById(id), is(new MusicType("test6"))); assertNull(this.testStore.findById(0)); }