### Question:
PartitionUtils { public static boolean isInvalidUserInputException(Exception e) { return e instanceof EntityNotFoundException || e instanceof InvalidInputException; }  static Map<PartitionKey, Partition> buildPartitionMap(final List<Partition> partitions); static List<PartitionValueList> getPartitionValuesList(final Map<PartitionKey, Partition> partitionMap); static boolean isInvalidUserInputException(Exception e);  }### Answer:
@Test public void testIsInvalidUserInputException() { assertTrue(PartitionUtils.isInvalidUserInputException(new InvalidInputException("foo"))); assertTrue(PartitionUtils.isInvalidUserInputException(new EntityNotFoundException("bar"))); assertFalse(PartitionUtils.isInvalidUserInputException(new InternalServiceException("bar2"))); assertFalse(PartitionUtils.isInvalidUserInputException(new ResourceNumberLimitExceededException("bar3"))); assertFalse(PartitionUtils.isInvalidUserInputException(new NullPointerException("bar4"))); }